CakePHP: using models in different controllers

QueellFiextt

New Member
I have a controller/model for projects. so this controls the projects model, etc, etc. I have a homepage which is being controlled by the pages_controller. I want to show a list of projects on the homepage. Is it as easy as doing:\[code\]function index() { $this->set('projects', $this->Project->find('all')); }\[/code\]I'm guessing not as I'm getting:\[code\]Undefined property: PagesController::$Project\[/code\]Can someone steer me in the right direction please,Jonesy
 
Back
Top