php - CakePHP 1.3: Alaxos ACL Plugin not recognizing Pages Plugin -



php - CakePHP 1.3: Alaxos ACL Plugin not recognizing Pages Plugin -

i have been developing cakephp , alaxos acl plugin has helped in tremendously.

however, facing 1 issue not sure how prepare it?

i added plugin named 'pages', cannot acl see added list of allowed/denied actions.

if access plugin thru domain.com/pages/pages next error

dbacl::check() - failed aro/aco node lookup in permissions check.

when check thru acl plugin display, there no reference pages controller , if run acl build function, says there nil add.

is because controller named pages , there pages controller within cake?

if how prepare it? option, @ time, adding manually db? should go thru plugin , rename pages else? or there else should doing?

thanks,

i see 2 things here. first suspect, having 2 classes in application share same name bad idea. give problems in 1 way or another, wrong class beingness instantiated or whatever. far cake not utilize namespaces, not recommended.

then, if alter name, there problem if controller want manage acl 'default' controller (a controller has same name plugin). there issue aco nodes retrieval when path contains twice same name, case plugins default controllers.

controllers/pages/pages/index

so decided skip plugins default controllers controllers supported acl plugin.

if author of plugin, rename (because pagescontroller exists already), , move actions in other controller default controller.

php mysql cakephp acl

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -