when a run this action (http://localhost/groups/build_acl)  in
browser, i have a fatal error:
Fatal error: Call to a member function node() on a non-object
in /./././.1/app/controllers/groups_controller.php

function build_acl() {
                if (!Configure::read('debug')) {
                        return $this->_stop();
                }
                $log = array();

                $aco =& $this->Acl->Aco;
                $root = $aco->node('controllers');      // This line
                if (!$root) {
                        $aco->create(array('parent_id' => null, 'model' => 
null, 'alias' =>
'controllers'));
                        $root = $aco->save();
                        $root['Aco']['id'] = $aco->id;
                        $log[] = 'Created Aco node for controllers';
                } else {
                        $root = $root[0];
                }

How can i fix this?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to