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
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
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 è
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
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
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
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
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
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo