Are you using PHP4.x? I suspect that you don't have $name = 'Magazine' in your model.
On Sat, Apr 25, 2009 at 1:58 PM, Minkbear <[email protected]> wrote: > > I moved to CakePHP 1.2.2.8120 and tried to call url, > http://<MySite>/admin/magazines/index, got this error: > > Notice (8): Undefined property: stdClass::$alias [CORE\cake\libs > \controller\controller.php, line 977] > Code | Context > $object = stdClass > stdClass::$recursive = 0 > $scope = array() > $whitelist = array() > $assoc = null > $options = array( > "pass" => array(), > "named" => array(), > "controller" => "magazines", > "action" => "admin_index", > "plugin" => null, > "prefix" => "admin", > "admin" => true, > "form" => array(), > "url" => "admin/magazines/index" > ) > $options = array_merge($this->params, $this->params['url'], > $this->passedArgs); > > if (isset($this->paginate[$object->alias])) { > Controller::paginate() - CORE\cake\libs\controller\controller.php, > line 977 > MagazinesController::admin_index() - APP\controllers > \magazines_controller.php, line 27 > Object::dispatchMethod() - CORE\cake\libs\object.php, line 115 > Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227 > Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 > [main] - APP\webroot\index.php, line 88 > > Fatal error: Call to undefined method stdClass::find() in C:\Program > Files\xampp\htdocs\cakefinal\cake\libs\controller\controller.php on > line 1063 > > Code in magazines_controller.php is: > var $name = 'Magazines'; > var $uses = array('Column', 'MagazineColumn'); > > function admin_index() { > $this->Magazine->recursive = 0; > $this->set('magazines', $this->paginate()); > } > > need help. > thank you in advance. > > minkbear > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
