[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread stfalcon
Ok. I made changes in controllers https://github.com/stfalcon/portfolio/commit/4165f15f9206c9f26a8b07ad83eaa4e2e6cfb0bd Now validation works fine. On 14 Лют, 12:49, Fabien Meurillon wrote: > It was indeed my reason. > But the create() static method also had a bug with the "name" parameter > (whos

Re: [symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread Fabien Meurillon
It was indeed my reason. But the create() static method also had a bug with the "name" parameter (whose mandatory property seems to be undocumented, as API claims a "" default value), in my version of the sandbox. Form constructor works well, I'm lazy to update the Framework (impossible to use git

Re: [symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread stof
On Mon, 14 Feb 2011 10:45:14 +0100, Fabien Meurillon wrote: > As workaround, I just turned my > $form = CustomerForm::create($this->get("form.context")); > Into a > $form = new > CustomerForm("customers_create",$this->get("form.context")->getOptions()); > The second argument of the Form::cre

Re: [symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread Fabien Meurillon
As workaround, I just turned my $form = CustomerForm::create($this->get("form.context")); Into a $form = new CustomerForm("customers_create",$this->get("form.context")->getOptions()); On Sun, Feb 13, 2011 at 11:37 PM, FabienM wrote: > Ok, problem found here : > > http://groups.google.com/grou

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread FabienM
Not sure that symfony2 is guilty (in my case), because I'm doing print_r($_POST) in my app_dev.php before any symfony statement and keep having an empty array as a result. Althought Chromium says some POST data are sent & variables_order is correctly set (GPCS), form data are not supplied to PHP. I

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread FabienM
Ok, problem found here : http://groups.google.com/group/symfony-users/tree/browse_frm/thread/ca55953f92ac004c/98e1398c5fe36d6d?rnum=1&_done=%2Fgroup%2Fsymfony-users%2Fbrowse_frm%2Fthread%2Fca55953f92ac004c%2F4c0d536a7305f621%3F#doc_4c0d536a7305f621 On 13 fév, 15:01, Frenck wrote: > OK, > > So now

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-14 Thread stfalcon
yep On 13 Лют, 16:01, Frenck wrote: > OK, > > So now what? Report an bug? > > ../Frenck > > On Feb 12, 10:58 pm, Fabien wrote: > > > > > > > > > Same problem here. > > It seems that $_POST is not populated and a print_r($this->get('request')) > > show no POST properties filled, whereas HTML for

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-13 Thread Frenck
OK, So now what? Report an bug? ../Frenck On Feb 12, 10:58 pm, Fabien wrote: > Same problem here. > It seems that $_POST is not populated and a print_r($this->get('request')) > show no POST properties filled, whereas HTML form > > seems valid. > > On 11 fév, 18:17, Frenck wrote: > > > > > > >

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-12 Thread Fabien
Same problem here. It seems that $_POST is not populated and a print_r($this- >get('request')) show no POST properties filled, whereas HTML form seems valid. On 11 fév, 18:17, Frenck wrote: > Hi, > > I've got a small little issue with Symfony2 PR6. I'm trying to create > a small and simple form.

Re: [symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-12 Thread Justen Doherty
i havent used symfony 2.0 - but when i have problems with forms, i find echo'ing $form in the template reveals validation errors.. On Sat, Feb 12, 2011 at 3:40 PM, stfalcon wrote: > I have the same problem. > > $form->isValid() always return true > $validator->validate($entity) works fine > > On

[symfony-users] Re: Simple form seems never valid, no error messages?

2011-02-12 Thread stfalcon
I have the same problem. $form->isValid() always return true $validator->validate($entity) works fine On 11 Лют, 19:17, Frenck wrote: > Hi, > > I've got a small little issue with Symfony2 PR6. I'm trying to create > a small and simple form. > Input is an barcode (entered by a barcode scanner). >