[symfony-users] Re: Validation don´t work

2010-02-15 Thread Tom Ptacnik
You need to add the validation part or the form to your action if ($form-isValid()) { process... } else { $this-getUser()-setFlash('error', 'The item has not been saved due to some errors.', false); } (look into some autogenerated processForm action) On 13 ún, 20:24, Rodrigo Prado

Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-15 Thread jean-christophe zulian
Hi Michal, You actually may be right, this problem might be related to the browser or session information. For some reason we haven't be able to reproduce this problem since this morning and we are doing exactly the same thing as before (login, logout and login again). Cheers, Jean-christophe

Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-15 Thread Sid Bachtiar
You might want to try this 1. Login 2. Logout 3. Open login page 4. Leave the browser alone until the session expired (e.g.: default is 30 minutes I think, so leave it for an hour to be sure) 5. Try to login I think this is a problem with CSRF and session. I actually disable CSRF protection on

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 9 Messages in 7 Topics

2010-02-15 Thread joost . farla
Beste, Tot en met 18 februari ben ik niet aanwezig op kantoor. U kunt contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c | 5017 KC Tilburg

[symfony-users] Re: How can i display the register link, in my login page using SfGuardExtraPlugin?

2010-02-15 Thread p16
Hi, the regstration link seems ok. (I gave you the wrong one yesterday, sorry) The routing role sf_guard_register you added doesn't seem to be right. The plugin should register its own routing roles by itself.

[symfony-users] Trying to give a default value to a filter form

2010-02-15 Thread Javier Garcia
Hi, im trying to give a default value to a field of a filter. I have no problems giving a default value to a form this way: $m = new Birthday(); $m-setName('Peter'); $this-filter = new BirthdayForm($m); But when i try this: $m = new Birthday(); $m-setName('Peter'); $this-filter = new

[symfony-users] m:n with orderBy setting in yml is ignored

2010-02-15 Thread axel at
hello, using symfony 1.4 with doctrine: how can I add an order by xy to the default doctrine getter example: Event: columns: id: type: integer(4) primary: true title: type: varchar(255) Visitor: class: Visitor refClass: Event2Visitor local: id

[symfony-users] sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-15 Thread Tomasz Ignatiuk
Hi I have a table with unique index of 3 columns. So I use this: $this-validatorSchema-setPostValidator( new sfValidatorPropelUnique(array('model' = 'ProduktPartner', 'column' = array('partner', 'product', 'language'))) ); It works well. But I would like to make some changes in

[symfony-users] Re: Error using sfFacebookConnectPlugin and sfGuardPlugin

2010-02-15 Thread Zach
Has anyone else done this? What's the best way to collect extra information about a facebook user, the first time they sign in with facebook connect? How do I know it's their first time, and how should I override the default Signin function to do this? Thanks, Zach On Feb 8, 11:45 am, Zach

[symfony-users] Filtering a list from the action

2010-02-15 Thread NOOVEO - Christophe Brun
I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function executeUseMyFilter(sfWebRequest $request) { $id =

Re: [symfony-users] Filtering a list from the action

2010-02-15 Thread Javier Garcia
On 02/15/2010 04:49 PM, NOOVEO - Christophe Brun wrote: I am working on the 'list' view of a module. The filtered list is displayed via a call to the executeFilter() method, as usual. Now, I create a route and the appropriate method myModuleActions : public function

[symfony-users] Why this don't take the real ID values from DB?

2010-02-15 Thread ReynierPM
Hi every: I have this code in BaseTAfiliadoForm.class.php: 'id_especialidad' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('TEspecialidad'), 'add_empty' = true)), This generate the following HTML code: select name=t_afiliado[id_especialidad]

[symfony-users] Re: Filtering a list from the action

2010-02-15 Thread Florian
Hello, To my mind, you should use this method: {{{ $this-filter-setDefault('name', 'Peter'); }}} It's more correct, because semantically, you want set a default value to your form, not to your model object! But if you want to set use the contructor of the sfFormFilter BaseForm

[symfony-users] symfony project:disable backend does not work

2010-02-15 Thread Darren884
When I run this and go to look at my backend it still displays, even though I have check_lock: true under my settings. Is this an error? Do I have to manually create an unavailable page? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to

Re: [symfony-users] symfony project:disable backend does not work

2010-02-15 Thread Gábor Fási
Did you clear your cache after enabling check_lock? On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote: When I run this and go to look at my backend it still displays, even though I have check_lock: true under my settings. Is this an error? Do I have to manually create an

[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
Still doesn't work. Does display any page but says the command was executed successfully. On Feb 15, 11:22 am, Gábor Fási maerl...@gmail.com wrote: Did you clear your cache after enabling check_lock? On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote: When I run this and go

[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
Would it matter if I had PHP accelerator running? I am following all the directions correctly. On Feb 15, 1:03 pm, Darren884 darren...@gmail.com wrote: Still doesn't work. Does display any page but says the command was executed successfully. On Feb 15, 11:22 am, Gábor Fási maerl...@gmail.com

[symfony-users] Able to rename a project?

2010-02-15 Thread Darren884
Is it possible to rename a Symfony project? If so is it easy? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: [symfony-users] Able to rename a project?

2010-02-15 Thread Sid Bachtiar
I think you can just rename the folder, but the safest thing to do is to do text search of any occurrence of your project name in all files in the project. On Tue, Feb 16, 2010 at 10:21 AM, Darren884 darren...@gmail.com wrote: Is it possible to rename a Symfony project? If so is it easy? --