> [mailto:[EMAIL PROTECTED] On Behalf Of brandags
> It extends Cake's Form helper and also takes the validation from the
> model (using the advanced validation method - multiple rules
> per field)
> so you don't have to retype the validation messages or which
> fields are
> required, in your view.
I like the idea of getting validation errors from the model.
One thing I noticed with your component code is the init() --
Components have a startup method that is called automatically with the
controller as the param:
(From the wiki)
function startup(&$controller)
{
// This method takes a reference to the controller which is loading
it.
// Perform controller initialization here.
}
So you don't need to call anything in your beforeFilter; you can just put
your initialization code here.
--
Regards,
Ryan Ginstrom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---