I have a few basic applications in Cake now. I am adding authorizations to define who can do that. I have installed the Authenticate and Autorize modules. Now I am setting up the "policies". I got some error messages and noticed a bit of a discrepancy. Let's say we are baking a model for cookies. I would have a table "cookies". I can then bake the code with the following command line;
cake bake all cookies
This does not bake the policy, so I would do this separately as well;
cake bake policy cookies
However, this does not work. If I tell the CookiesController that authorization has to be checked on the current model, it tries to find the "CookiePolicy". However, the bake command has createed the "CookiesPolicy". I would have to bake "policy cookie". That seems a little inconistent to me. Did I miss something? Any thoughts?
CookiePolicy
, then this would suggest that you've likely checked against an entity. But that's just guessing, hence why I've asked for details.