Hi there,
the beforeFilter function in my app_controller over time has grown
into a monstrous 300 line code.
in that beforeFilter, i do things like
$this->set for non admin pages
$this->Cookie->write
$this->Auth->fields = array('username' => 'email', 'password' =>
'password');
$this->Auth->authorize = 'actions';
and many others.
Can i break up the code in beforeFilter into several private functions
inside app_controller?
Is there a better way?
Thank you.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php