Tuesday, October 25, 2011

Re: using components inside custom authorize object (CakePHP 2)

In any method of your custom object you ca do something like this, it will load the component or return the already instantiated one.


$session = $this->_Collection->load('Session');

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: