Tuesday, September 6, 2011

Re: Singleton instance of controller

This approach is incorrect. Place that functionality in the model or a
component, or even the AppController.

On Sep 6, 12:12 am, ajaxboy <symphonyma...@gmail.com> wrote:
> If would be nice if you add a singleton method to get an instance of
> the controller in case need to load stuff outside of a user
> controller, that way you don't need to create a new controller object
> which would build everything again

--
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: