Re: node in Acl behavoir

2012-08-29 Thread lowpass
Does your model have AclBehavior set up?

public $actsAs = array('Acl' => 'controlled');

On Tue, Aug 28, 2012 at 12:07 PM, Elhelaly  wrote:
> Using Cakephp 2.1.2
> I am trying to make a method to generate the Aco's (check if there is a new
> controller or methods and add it in aocs table)
> I have a problem with using the node method , get this error
>
> Database Error
>
> SQL Query: node
>
>
> my method code in usersController.php
>
> public function admin_generate() {
> $this->loadModel("Aco")
>
>$root = $this->Aco->node('controllers');
>
> }
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




node in Acl behavoir

2012-08-28 Thread Elhelaly
Using Cakephp 2.1.2
I am trying to make a method to generate the Aco's (check if there is a new 
controller or methods and add it in aocs table)
I have a problem with using the node method , get this error
Database Error

*SQL Query: * node 


my method code in usersController.php

public function admin_generate() {
$this->loadModel("Aco")

   $root = $this->Aco->node('controllers');

}
 

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.