I have been using CakePhP for 2 months now and have to say it’s been a revelation! It’s a great framework.
My problem is: I currently have a need to load a model in a controller for a completely unrelated (SQL wise) model. Here is my basic ‘Races’ index controller method:
Notice (8): Undefined property: Cake\ORM\Query::$body [APP/Template\Races\index.ctp, line 13]
Code Context
include - APP/Template\Races\index.ctp, line 13
Cake\View\View::_evaluate() - CORE\src\View\View.php, line 992
Cake\View\View::_render() - CORE\src\View\View.php, line 952
Cake\View\View::render() - CORE\src\View\View.php, line 587
Cake\Controller\Controller::render() - CORE\src\Controller\Controller.php, line 611
Cake\Routing\Dispatcher::_invoke() - CORE\src\Routing\Dispatcher.php, line 120
Cake\Routing\Dispatcher::dispatch() - CORE\src\Routing\Dispatcher.php, line 87
[main] - ROOT\webroot\index.php, line 36