I did think of that, but every controller calls  other functions which would
over-ride the AppController such as:

 

public function beforeFilter() {

              parent::beforeFilter(); //so this would say production

              $this->Auth->deny(); // then this would kick in

              

              

              //Allow Security to allow ajax request for these actions

              $ajax_request = array('manage_add', 'manage_edit',
'manage_delete');

              if(in_array($this->params['action'], $ajax_request)){

                     

                     $this->Security->unlockedActions = $ajax_request;

                     $this->Security->csrfCheck = false;

              }

       }

 

Dave Maharaj

Freelance Designer | Developer
Description: header_logo
www.movepixels.com  |   <mailto:[email protected]> [email protected]  |
709.800.0852

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Reuben Helms
Sent: Friday, November 29, 2013 11:52 AM
To: [email protected]
Subject: Re: Production and Development Environment

 

You don't have to go through every controller.  Just on the one controller,
the AppController, for the default deny, and the code that will skip that
deny if you have a config that suggests you're in a development environment.
The only other Controller to touch will be the controller that looks after
your login action, for which you'll want an accept after
parent::beforeFilter().

 

On Fri, Nov 29, 2013 at 2:45 PM, Advantage+ <[email protected]> wrote:

Hmm sounds like the exact thing I said....and 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 states no to go thru every controller
@simon - rookie ass fool

 

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
--- 
You received this message because you are subscribed to a topic in the
Google Groups "CakePHP" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cake-php/qY0yLORk4MM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:cake-php%[email protected]> .
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
--- 
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

<<image001.jpg>>

Reply via email to