Re: loadModel() and App::import('Model', 'ModelName')

2011-02-27 Thread Ryan Schmidt
On Feb 27, 2011, at 13:18, iainjames wrote: > Hey guys, I'm having some trouble telling my controller actions which > model to use. My controller is structed like so: > == > class AdminController extends AppController { >var $name = 'Admin'; >var $uses = ar

loadModel() and App::import('Model', 'ModelName')

2011-02-27 Thread iainjames
Hey guys, I'm having some trouble telling my controller actions which model to use. My controller is structed like so: == class AdminController extends AppController { var $name = 'Admin'; var $uses = array('News', 'User'); function action_that_uses_news