to create an Aro object try

--> $aro = new Aro()

you might want to look @ this article 
http://bakery.cakephp.org/articles/view/real-world-access-control

cheers,
k10

On Dec 26, 1:55 pm, Jonathan <[EMAIL PROTECTED]> wrote:
> Hi, i'm trying to get a permissions manager using acl all together
> with scaffolding.
> I've mapped db tables into classes througth console using bake.php.
> All is going good (i mean, i can add, edit, view, view associations,
> etc.) until i use "var $components = array('Acl')"
> The Aro class in the model hasMany AcosAro and hasAndBelongsToMany
> Aco. Additionaly, i have users (deeper in the acl tree), then User
> belongsTo Aro and Aro hasMany Users. As i said, all goes fine (i can
> add users, etc) until i use the line cited up there.
>
> The problems seems to be that to define $components overwrite the Aro
> class, so i cant do $this->Aro->Aco->generateList() cause it says:
> Undefined property: Aro::$Aco in C:\wamp\www\app\app\controllers
> \aros_controller.php on line 24.
>
> Any recommendation to manage acces with scaffolding's help?
> I even tried to declare $components in another class and call a method
> that instance the aro object and use the create method, but it didn't
> work.
> Ty for your help.
>
> --
> Jonathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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