hi all,
am new in cakephp. i need to populate a dropdown (Roles). am using
find() method for this. but am getting an error from my controller.
"Notice (8): Undefined property: AppModel::$Role [APP\controllers
\access_rules_controller.php, line 11]
Code
function index()
{
$roles = $this->AccessRule->Role->find('list', array(
AccessRulesController::index() - APP\controllers
\access_rules_controller.php, line 11
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 a member function find() on a non-object in C:
\xampp\htdocs\UOV\app\controllers\access_rules_controller.php on line
11".
can somebody help me with this.
what am i doing wrong in this ?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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