Monday, July 27, 2009

Re: How to inheirt form other controllers?

You can use that controller (Model) in app_controller.php;

var $uses = array('User', 'Curl', 'Services');  // etc ;)

---------------

In your "end" controller you can use something like

$this->User->Controller->method();            // Dont know the exact snippet ... but search in google.


On Mon, Jul 27, 2009 at 3:52 PM, Michael Gaiser <mjgaiser@gmail.com> wrote:
I want to have my UserAdmin controller inherit from my User controller instead of AppController. but it cannot seem to find it. Is there a special way to do this in cake or can I just use and include statment? Thanks.
 
~MJG





--
Regards,

Jaydeep Dave
Mobile: +919898456445
Email: jaydipdave@yahoo.com

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