I was having the same problem today.  I made one change that got rid
of the problem, however, since I'm new to Acl I am not sure that the
change I made is correct.

I changed the line that you have to the following and the fatal error
went away.

$Controllers = Configure::listObjects('controller');

Now when I go to the url: http://localhost/groups/build_acl I get the
following output:

app/controllers/groups_controller.php (line 147)

Array
(
    [0] => Created Aco node for Pages
    [1] => Created Aco node for display
    [2] => Created Aco node for Groups
    [3] => Created Aco node for index
    [4] => Created Aco node for view
    [5] => Created Aco node for add
    [6] => Created Aco node for edit
    [7] => Created Aco node for delete
    [8] => Created Aco node for build_acl
    [9] => Created Aco node for Posts
    [10] => Created Aco node for index
    [11] => Created Aco node for view
    [12] => Created Aco node for add
    [13] => Created Aco node for edit
    [14] => Created Aco node for delete
    [15] => Created Aco node for Users
    [16] => Created Aco node for login
    [17] => Created Aco node for logout
    [18] => Created Aco node for index
    [19] => Created Aco node for view
    [20] => Created Aco node for add
    [21] => Created Aco node for edit
    [22] => Created Aco node for delete
    [23] => Created Aco node for Widgets
    [24] => Created Aco node for index
    [25] => Created Aco node for view
    [26] => Created Aco node for add
    [27] => Created Aco node for edit
    [28] => Created Aco node for delete
)

After this I get some errors about not having a view for this
controller, but I think that is expected.

Hopefully this helps...

Eric


On Sep 29, 9:10 am, robmcvey <robmc...@gmail.com> wrote:
> We aregoing through the "Simple Acl controlled Application Tutorial"
> as per the manual.
>
> Everything is going fine until we try and run the "Automated tool for
> creating ACOs" in this section;
>
> http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs
>
> When we run this method we get the follwing Fatal Error;
>
> Fatal error: Call to undefined method App::objects()
>
> The line causing the error is;
>
> $Controllers = App::Objects('controller');
>
> I seem to remember doing this tutorial in an earlier version of cake
> without problems
>
> Anyone have any ideas whats going on? Is this a latest version bug?
>
> Thanks
>
> Rob

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to