[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Georg Gell
Guessing: you have short_open_tag=1 in php.ini on your pc, but short_open_tag=0 on your laptop. Avani schrieb: Below is my code 345: !-- show only in trip-profile page OR multimedia pages -- 346: ?php 347:

[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Avani
Oh... Thanks a lot Georg, You guessed correct. Thanks everyone :) On Oct 7, 2:09 pm, Georg Gell geor...@have2.com wrote: Guessing: you have short_open_tag=1 in php.ini on your pc, but short_open_tag=0 on your laptop. Avani schrieb: Below is my code 345:                          

[symfony-users] Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet
Hi everyone, I'm using sf1.2 (trunk), and 2 plugins : sfPropelPlugin and sfProtocolousPlugin. Once I `symfony project:freeze /path/to/sf/`, I noticed that both plugins folders in /web are... linked ! cd web ls -l : sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web

[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Gareth McCumskey
From a best practices point of view I would suggest you never use PHP short tags as it can cause issues later if you ever use XML documents. Just my 2 cents. On Wed, Oct 7, 2009 at 8:09 AM, Georg Gell geor...@have2.com wrote: Guessing: you have short_open_tag=1 in php.ini on your pc, but

[symfony-users] Own form formatter

2009-10-07 Thread HAUSa
I want to create my own form formatter. But, how can I create it? I searched the documentation, and at the form chapter it says: By default, symfony uses an HTML array to display a form. This behavior can be changed using specific formatters, whether they're built-in or specifically developed to

[symfony-users] Re: Own form formatter

2009-10-07 Thread Davide Borsatto
The form book is not fully written, and IMHO, it will not be completed (at least not soon). My suggestion is to look into the default formatters and see how they work. If i remember well, they just define the html using object protected properties, so you can extend the default formatter and

[symfony-users] Re: getId() not working on newly saved object

2009-10-07 Thread rooster (Russ)
On Oct 6, 9:41 pm, Josh joshlaro...@gmail.com wrote: Hi all: I'm still pretty fresh to Symfony so bear with my newbie questions and confusions. Here's the deal: $this-product = new Product; // from BaseProduct::Product $obj = $this-product-save(); As far as I can tell - saving a

[symfony-users] Re: Question about abbreviated syntax in YAML files

2009-10-07 Thread tirengarfio
Thanks wiredcs, On Oct 7, 4:38 am, wiredcs wire...@gmail.com wrote: I think the error says it. If you don't specify the one side it won't populate that model with the setter for user profile. Did you read the section Abbreviated syntax (see the link in my first entry)? As you can see on it

[symfony-users] Re: Strange behaviour when freezing project

2009-10-07 Thread Eno
On Wed, 7 Oct 2009, Adrien Mogenet wrote: Once I `symfony project:freeze /path/to/sf/`, I noticed that both plugins folders in /web are... linked ! cd web ls -l : sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/

[symfony-users] Re: Strange behaviour when freezing project

2009-10-07 Thread Eno
On Wed, 7 Oct 2009, Adrien Mogenet wrote: Once I `symfony project:freeze /path/to/sf/`, I noticed that both plugins folders in /web are... linked ! cd web ls -l : sfPropelPlugin - ../../../Symfony/1.2/lib/plugins/sfPropelPlugin/web sfProtoculousPlugin - ../../../Symfony/1.2/lib/plugins/

[symfony-users] Re: is app.yml cascading work in SF1.2?

2009-10-07 Thread Eno
On Sun, 4 Oct 2009, wittygraphy wrote: I have the following in the config/app.yml all: tabs: primary: none; secondary: none; and this in the modules/xyz/config/app.yml all: tabs: primary: services; secondary: none; in an action of the module xyz I expected

[symfony-users] Symfony 1.2: dynamic show hide widget

2009-10-07 Thread eljam
Hello everybody, I've have a table with 20 fields. Symfony generate for me the form with the 20 fields. So for now that's good for me. Now i need for each client to hide or show some field, not all because some of them are used in a workflow. About the show hide thing, i need to hide the field

[symfony-users] Re: if (condition): endif: not working

2009-10-07 Thread Jeremy Thomerson
Ah, yes! Sometimes forget the little things. I, too, would recommend not using short open tags. Jeremy On Wed, Oct 7, 2009 at 1:38 AM, Avani avani.v.puj...@gmail.com wrote: Oh... Thanks a lot Georg, You guessed correct. Thanks everyone :) On Oct 7, 2:09 pm, Georg Gell

[symfony-users] Re: Strange behaviour when freezing project

2009-10-07 Thread Adrien Mogenet
Thank you both of you !! -- Adrien Mogenet http://www.ze-technology.com http://adrien.frenchcomp.net On 7 oct, 13:31, Eno symb...@gmail.com wrote: On Wed, 7 Oct 2009, Adrien Mogenet wrote: Once I `symfony project:freeze /path/to/sf/`, I noticed that both plugins folders in /web are...

[symfony-users] Re: Own form formatter

2009-10-07 Thread Richtermeister
Hey Hausa, that's fairly easy. Just look at, say, the sfWidgetFormSchemaFormatterList class and create a class that extends it. In that class you can do some major changes just by updating the template properties, like $rowFormat, $decoratorFormat, etc.. Then just tell your form to use that

[symfony-users] Problem with subforms

2009-10-07 Thread Marcos Medeiros
Dear Symfonyans, How can I do to setup/change the value into element of subform in the save action? Where can I change or overwrite the code? My model is a M:1, in this case if the user change the element of subform and the value is new I need insert into db, but if the value already exist I

[symfony-users] Database Views with Symfony Doctrine

2009-10-07 Thread ridcully
Hi, how can I use Database Views in Symfony with Doctrine? I need them because of performance reasons. My Idee was to create dummys in the model and after building the Model to drop the dummy tabels and create SQL Views. Is there a better way to do this?

[symfony-users] Optimal PHP Version for Symfony 1.2

2009-10-07 Thread axel at
hello, I'm still new to symfony and php and need a little help: what's the most stable configuration for large webprojects for the moment? symfony 1.2 and php5.2.x or better php5.3.x. if symfony 1.2 php5.3 is recommendet, can anybody link me a tutorial how to get plugin:install (pear) working

[symfony-users] culture aware sfValidatorNumber, what are you using?

2009-10-07 Thread Georg Gell
In german, a decimal number looks like this: 5,2, not 5.2 like PHP is expecting. If a user enters a decimal number in a form, sfValidatorNumber rejects it. I was expecting sfValidatorNumber to use the user culture to resolve this, but it does not. I found an old ticket on trac

[symfony-users] Re: Optimal PHP Version for Symfony 1.2

2009-10-07 Thread Juan Pablo Romero Bernal
Hi, I'm still new to symfony and php and need a little help: what's the most stable configuration for large webprojects for the moment? symfony 1.2 and php5.2.x or better php5.3.x. I have some projects running in production environment and i'm using symfony 1.2.8 + PHP 5.2.6 with good

[symfony-users] sfLogger - why the eventdispatcher?

2009-10-07 Thread Richtermeister
Hi all, one thing I was wondering is why all sfLogger variants have to use the sfEventDispatcher.. it seems that this makes each logger listen to application.log events.. What if I just want a simple logger that logs results from some task I'm doing.. I don't neccessarily want application events

[symfony-users] difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Ashok
What is the main difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection? Where and when should I use one of the other? Explanation with an example would be great. Thanks --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: sfLogger - why the eventdispatcher?

2009-10-07 Thread Henning Glatter-Gotz
Daniel, I had the same requirement you have a few weeks ago. First I started writing my own logger base class, but it started looking more and more like the sfLogger class as work progressed, so what I did was create my own logger base class that extends sfLogger. Yes, it extends sfLogger,

[symfony-users] Re: difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Eno
On Wed, 7 Oct 2009, Ashok wrote: What is the main difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection? Where and when should I use one of the other? Explanation with an example would be great. Thanks Im guessing that one is to display the new form and one is

[symfony-users] Re: difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection

2009-10-07 Thread Dennis Benkert
Exactly. :) - Dennis Am 08.10.2009 um 03:57 schrieb Eno symb...@gmail.com: On Wed, 7 Oct 2009, Ashok wrote: What is the main difference between 'new' and 'create' methods generated by sfDoctrineRouteCollection? Where and when should I use one of the other? Explanation with an example