On 05/21/10 18:51, Henrik Gemal wrote:
> I have a controller which is being called with different paramters
> like:
> /test/do?start=2010-01-01&end=2011-01-01&test=1&super=8
>
> Now I like to user cake to validate the input parameters. How do I do
> that?
>
> I like to specify that start and end are dates and test is numeric and
> super is also numeric.
>
> Can CakePHP do this?
>
> I'm not saving the parameters into a database so I cant just use $this-
>   
>> save($data)
>>     
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>   
can u try saveAll(.., array('validate' => 'only')?

-- 
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to