Questions tagged [symfony-1.4]

Questions about Symfony version 1.4, a PHP framework by Sensio Labs.

Symfony is a PHP Web Development Framework developed and maintained by Sensio Labs.

The symfony 1.4 version is the last Long Term Support release for the symfony 1.x branch and it is maintained until November 2012.

You will find more information about documentation, detailed installation guide and changelog on the official website.

This tag is specific for the 1.4 version of Symfony. See the tag for Symfony 1.x in general. If your question targets Symfony 2.x, use instead.

Symfony 1.4 is released under the MIT license.

2428 questions
7
votes
3 answers

Execute custom SQL in symfony

I'm trying to execute some custom SQL to retrieve some model objects in a Symfony application. I found a tutorial on the web that said something like this would allow me to execute the query although not populate the models (populating the model…
BenCr
  • 5,991
  • 5
  • 44
  • 68
7
votes
2 answers

sfValidatorDoctrineUnique in an update/edit context

I'm using a form class in two separate contexts: both to create a new record and also to edit that record. I've set up a post-validator as follows to check that the URL field is unique. $this->validatorSchema->setPostValidator(new…
Tom
  • 30,090
  • 27
  • 90
  • 124
7
votes
4 answers

Using routes to generate URLs in a Symfony task

I am running Symfony 1.3.6 on Ubuntu 10.0.4 LTS. I have written a Symfony task that generates a report which contains links (URLs). Here is a snippet of the execute() method in my task class: protected function execute($arguments = array(),…
morpheous
  • 16,270
  • 32
  • 89
  • 120
7
votes
2 answers

How to "order by" a sfWidgetFormDoctrineChoice in the Admin Generator

I'm using Symfony 1.4 and Doctrine. Let's say I have 2 classes : a Brand and a Product. When I create a new product in the Admin Generator based admin, I'd like to choose a brand from a dropdown list. The Admin Generator is doing that for me,…
Guillaume Flandre
  • 8,936
  • 8
  • 46
  • 54
7
votes
3 answers

Ignore duplicates when using INSERT in a Database with Symfony and Doctrine

I have a table CREATE TABLE `sob_tags_articles` ( `tag_id` int(11) NOT NULL, `article_id` int(11) NOT NULL, `id` int(11) NOT NULL auto_increment, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=112 And triing to save an object with…
user274101
  • 103
  • 1
  • 2
  • 6
7
votes
3 answers

Symfony - Is it possible to disable output escaping per module (or per template)?

I'm trying to output some HTML in an XML template and Symfony's escaping method is messing it up. So I tried making a copy of settings.yml in the module's config folder, but it seems to be completely ignored. Is there an easy way to change the…
Steven Mercatante
  • 24,757
  • 9
  • 65
  • 109
7
votes
2 answers

Symfony produces a white page

I Have tried to integrate a symfony project on my server but it produces a blank page does not produce any errors even if i on the error display in php. After i include configuration file in index.php nothing works, even the die in the first line of…
anoop
  • 1,604
  • 6
  • 24
  • 50
7
votes
3 answers

How to get result information when updating mysql table with Doctrine ORM in symfony 1.4

I am developing with symfony 1.4 and using Doctrine ORM. After building schema and models i've got some classes for work with database. I can also use Doctrine_query .... The only thing, that i cann`t understend is: I need to update…
7
votes
1 answer

Bad search filter on LDAP when trying to get user data

I am fresh out of the box here with LDAP, so let me know if I am doing this in the completely wrong fashion. I am working with Symfony 1.4 using the bhLDAPAuthPlugin plugin I am verifying user login with LDAP. However, there is more data in the…
Carey Estes
  • 1,534
  • 2
  • 31
  • 59
6
votes
4 answers

In Symfony, how can I use the url_for helper in a class?

I am building a URL inside of a class and I'd like to be able to change the routing if necessary later by just changing the routing.yml file. If I have the route: userSignup: url: /user/signup param: { module: user, action: signup } How can I…
Justin
  • 4,203
  • 7
  • 41
  • 58
6
votes
1 answer

Symfony include partial from custom folder

Form example: $jobs)) ?> I have module job and partial _list.php in module folder templates. Is it possible create in templates folder partials and in include all partials from that folder? If it…
denys281
  • 2,004
  • 2
  • 19
  • 38
6
votes
1 answer

Symfony 2 Proxy to iteratively replace Symfony 1.4 project

We're currently sitting on a Symfony 1.4 implementation of our system. The system is too big to re-develop in Symfony 2 and to an over-night-switchover - the re-dev will take us probably a year. What we are thinking of doing, is to install a new…
Sarel
  • 1,210
  • 2
  • 15
  • 23
6
votes
2 answers

Symfony action name in template

How can I get the action name inside a template? The template is actually a partial.
prongs
  • 9,422
  • 21
  • 67
  • 105
6
votes
1 answer

Using Symfony 1.4 sfGuardUser tables with Symfony 2 SecurityBundle?

I am trying to migrate a part of a software system to Symfony 2. I can't possible migrate all of them at once, so, I am looking for a way to use sf_guard_ tables for authentication/authorization in Symfony 2. Is this possible? I have done this so…
Tower
  • 98,741
  • 129
  • 357
  • 507
6
votes
2 answers

Setting up Doctrine_Collection key mapping attribute in schema.yml

In Doctrine 1.2, it is possible to set up Key Mapping for a table where Doctrine_Collection objects created by that table will populate keys from a particular column in each record in the collection. An example from the documentation linked…
user212218