#5561: AclComponent problem while using getAro and getAco functions
-------------------------+--------------------------------------------------
    Reporter:  nchankov  |          Type:  Bug                      
      Status:  new       |      Priority:  Medium                   
   Milestone:  1.2.x.x   |     Component:  ACL (Access Control List)
     Version:  RC3       |      Severity:  Normal                   
    Keywords:  acl       |   Php_version:  PHP 5                    
Cake_version:            |  
-------------------------+--------------------------------------------------
 I've noticed that when I am using these 2 functions from AclComponent it
 return me fatal error. I am using following snippet:
 {{{
 $check = $this->Acl->getAro(3);
 $check = $this->Acl->getAco(3);
 }}}

 The error on the screen is:
 Fatal error: Call to undefined method DbAcl::getAro() in
 /opt/lampp/htdocs/my.project/cake/libs/controller/components/acl.php on
 line 182

 When I've checked the following code I've seen that the function is:
 {{{
 function setAco($id) {
                 return $this->Aco = $this->_Instance->getAco($id);
         }
 }}}

 in the
 {{{__construct()}}} function I've check that _Instance in fact is 'Dbacl',
 which is right, because I am using database acl.

 The problem is that Dbacl class doesnt have getAco and getAro functions
 and that's why the error appear. I dont have any solution of the problem.

 The same is when using setAro and setAco as well.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5561>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to