Use $this->validates()

But why not use Cake's named parameters? (e.g. /test/do/start:
2010-01-01/end:2010-01-01/test:1/super:8)

On May 21, 11:51 am, Henrik Gemal <henrikge...@gmail.com> 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 sitehttp://cakeqs.organd 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 
> athttp://groups.google.com/group/cake-php?hl=en

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