[symfony-users] Re: Form validation

2011-02-16 Thread Lideln
On 16 fév, 00:02, Christophe COEVOET wrote: > Le 15/02/2011 23:57, Lideln a crit : > > > Since I cannot add new answers to the topic I created earlier (why > > that ?), I create a new one here with additionnal info. > > > As I said, I followed the official tutorial to create a RegisterForm > > a

[symfony-users] Re: Form Validation

2009-12-03 Thread WEB-CHALLENGE
Thanks a lot! I've just found the solution before your post! Thanks anyway for your contribution and help. :* On 2 déc, 21:14, Alexandre Salomé wrote: > Hi, > >   Welcome to symfony :) > >   You must set a postValidator on the validatorSchema of your form. > >   In the configure() method of you

[symfony-users] Re: Form validation

2009-08-20 Thread Stefano Sancese
Ok, it was easier than what I thought: $this->validatorSchema['CodFiscale'] = new sfValidatorAnd(array(new sfValidatorString(array('min_length' => 16, 'max_length' => 16), array ('min_length' => 'Il Codice Fiscale è troppo corto, deve essere di 16 caratteri', 'max_length' => 'Il Codice Fiscale è

[symfony-users] Re: Form validation

2009-08-15 Thread Stefano Sancese
Ciao Richtermeister, I wrote the validator as a Callback: widgetSchema['DataInizioValidita'] = new sfWidgetFormI18nDate (array('culture' => 'it_IT', 'month_format' => 'short_name')); $this->validatorSchema->setPostValidator(new sfValidatorCallback (array('callback' => array($this, 'checkSogli

[symfony-users] Re: Form validation

2009-08-12 Thread Richtermeister
Hey Stefano, I would write a custom post-validator. A post validator is given the entire data array, so from there you can just loop over the array and see if the values keep increasing.. Hope this helps, Daniel On Aug 12, 8:57 am, Stefano wrote: > Hi, > > I'm developing my first web-applica

[symfony-users] Re: Form Validation based on a tainted value?

2009-07-27 Thread John - White October
That was exactly what I was looking for. Thanks, been staring at it for a while now! On Jul 26, 9:01 pm, Gábor Fási wrote: > I'm not sure I get what you mean. If you want to make sure one date is > later than another one, I suggest you set up an > sfValidatorSchemaCompare [1] instance as a post

[symfony-users] Re: Form Validation based on a tainted value?

2009-07-26 Thread Gábor Fási
I'm not sure I get what you mean. If you want to make sure one date is later than another one, I suggest you set up an sfValidatorSchemaCompare [1] instance as a post validator. [1] http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_sub_sfvalidatorschemacompare On Sun, Jul 26, 2

[symfony-users] Re: Form validation in symfony1.2

2009-04-01 Thread Prashanth
Hi jmaicher, Thanks For you Reply. iam searching for form validations without using of widgets. If you have any Idea Please Help me. Regards, Prashanth On Mar 31, 6:53 pm, jmaicher wrote: > It's pretty simple .. you created a class which extends sfForm?! > If so you just have to implement t

[symfony-users] Re: Form validation in symfony1.2

2009-03-31 Thread jmaicher
It's pretty simple .. you created a class which extends sfForm?! If so you just have to implement the configure()-function where you can create widgets (I hope you did that so far). With $this->setValidators you can specify validators for each widget or you can add a post validator. little exampl

[symfony-users] Re: Form validation in symfony1.2

2009-03-31 Thread Prashanth
Thank you Very much For your Reply. And iam in little confusion where i have to write that code. Please Can you give the Example. On Mar 23, 8:26 pm, Fási Gábor wrote: > You can use the validators described in the Forms book, appendix > Bhttp://www.symfony-project.org/book/forms/1_2/en/B-Valid

[symfony-users] Re: Form validation in symfony1.2

2009-03-23 Thread nidheesh
I think you should use widgets in sf1.2 to for validation. Its not that much difficult to use it rather i think its easier than ordinary form and validations used before. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[symfony-users] Re: Form validation in symfony1.2

2009-03-23 Thread Fási Gábor
You can use the validators described in the Forms book, appendix B http://www.symfony-project.org/book/forms/1_2/en/B-Validators they can be used w/o the form framework. On Mon, Mar 23, 2009 at 07:10, Prashanth wrote: > > Hi All, > > iam working with symfony 1.2. > i have created the forms witho

[symfony-users] Re: Form validation as array

2008-06-03 Thread Mauro Casula
Hi, You have to create an edit.yml ( edit is your form submit action ) like this: methods: post: - "feedback{name}" - "feedback{email}" - "feedback{message}" names: feedback{name}: required: yes required_msg: Insert a title. . Try this.. ;) Regards. Mauro Casu

[symfony-users] Re: form validation <--> model validation

2008-03-02 Thread Ian P. Christian
Thomas Rabaix wrote: > The original propel project handle validation at the Model level. This > feature has not been kept on symfony, don't know why ... Firstly, please don't cross post! :) Secondly, whilst I don't know why it was not done this way - but validating things in the model doesn't a

[symfony-users] Re: Form validation problem

2007-09-19 Thread z01d
I am was having this and some other validation errors documented here: http://www.symfony-project.com/forum/index.php/m/35804/#msg_35804 I'll try to see if the fix above works, thanks. Smells like a bug to me. On 19 сент, 13:35, nico_bl1nd <[EMAIL PROTECTED]> wrote: > thanks Kiril, > > it works

[symfony-users] Re: Form validation problem

2007-09-19 Thread nico_bl1nd
thanks Kiril, it works really well. I'll test more later why it doesn't want to take my post declarations at the beginning. Thanks again Nicolas Binet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony use

[symfony-users] Re: Form validation problem

2007-09-19 Thread Kiril Angov
nico_bl1nd wrote: > Hi, > > I got some problem with the validation of form. > When I first get on the form, I get this error : > Notice: Array to string conversion in /usr/local/php5/lib/php/symfony/ > util/sfToolkit.class.php on line 329 > > And then when I validate my form, the sfStringValidator