0
votes

I built a project with Acl enabled - I used the CakePHP tutorial on their website to do this.
However, the project no longer needs this functionality.

I've removed all reference of Acl and Aco in my controllers, models and views (if fact I did the tutorial in reverse to remove everything) and I then deleted the three database tables that were generated in this process.

However, I still get the error:

Error: Database table acos for model Aco was not found.

On all of my controllers.

Did the acl baking process add some files I don't know about? How do I get rid of this functionality?

1
Have you removed them from app_controller? - Headshota
yeah... that was my first hit ;p - Dan Hanly

1 Answers

6
votes

Try emptying your app/tmp/cache. Model relations may be caches there. After that, grep through your app directory for references to Aco and Aro. You may have missed one.

Edit: Also, make sure that your Auth component does not set Auth->authorize to actions (which uses ACL) but something else appropriate. See Auth::authorize in the CakePHP manual.