Friday, April 24, 2009

Re: Call Validate routines manually from controller

http://book.cakephp.org/view/410/Validating-Data-from-the-Controller

On Apr 24, 12:32 am, Temujin <calebjo...@gmail.com> wrote:
> I know this will make some MVC purists out there cringe, but is there
> a way to manually call Validate routines from within the controller?
>
> I have a simple form that needs to validate multiple email addresses
> and I don't want to make a model to handle just this one validation
> check.
>
> Trying the following:
> Validate::email($email)
>
> ... from the controller results in "Class 'Validate' not found".
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: