RE: Production and Development Environment

2013-11-28 Thread Advantage+
I want to say mode= production so no access but login And not go thru every controller and deny() that's what I am asking. Nothing to do with ajax Dave Maharaj Freelance Designer | Developer Description: header_logo www.movepixels.com | mailto:d...@movepixels.com

Re: Production and Development Environment

2013-11-28 Thread Simon Males
Tried environments? https://github.com/OctoBear/cakephp-environments On Thu, Nov 28, 2013 at 5:47 PM, Advantage+ movepix...@gmail.com wrote: I want to say mode= production so no access but login And not go thru every controller and deny() that’s what I am asking. Nothing to do with ajax

Re: Production and Development Environment

2013-11-28 Thread Reuben Helms
For that, you set up a deny by default in the AppController, and then override with specific allows in specific controllers. And then in development, where you seem to want unfettered access, just remove the global deny, so everything is allowed. (or used a config to denote it's the development

RE: Production and Development Environment

2013-11-28 Thread Advantage+
Hmm sounds like the exact thing I saidand if you do Beforefilter::parent () in the controller what was the point of asking if there is an easy way to no go thur every controller! And that would not solve the problem either and if you took a few seconds to read the question Its clearly