maaz
maaz

Reputation: 3664

CakePHP 2.x: Alaxos ACL Plugin- configure the admin route

i am a cakephp beginner , have not much exposure to cakephp. I have followed installation step for Alaxos ACL plugin foe cakephp 2.0 from -alaxos site .. there second step is configuring admin routing .

that i have done by adding

Router::connect('/admin/acl', array('plugin' => 'acl', 'controller' => 'acl', 'action' => 'admin_index', 'admin' => true));

to my Cake/Routing/Router.php file and configuring app/Config/core.php: by adding following line

 Configure::write('Routing.prefixes', array('admin'));

i am not sure whether this is the correct way of doing it...

On accessing the plugin http://localhost/cakeacl/admin/acl it gives error

 **Private Method in AclController

Error: AclController::admin_index() cannot be accessed directly.**

Please help me ..Thanks in advance...

Upvotes: 2

Views: 2754

Answers (2)

steamboy
steamboy

Reputation: 1162

Have you tried this guide http://book.cakephp.org/1.3/view/1543/Simple-Acl-controlled-Application from the official site yet?

Upvotes: -1

Saanch
Saanch

Reputation: 1844

try to put only the following in the app/Config/core.php and remove the Router configurations.

Configure::write('Routing.prefixes', array('admin'));

Upvotes: 6

Related Questions