If I understood your explanation right then this is what happens:
the beforeFilter() method gets called before your action method so
$this->locked isn't set yet!
you could try to have a special class var for your controller that
stores the locked actions:

class EntriesController extends AppController {
    var $locked = array('write', 'etc');
}

and then:

class AppController extends Controller {
    function beforeFilter() {
        if (isset($this->locked[$this->action])) {
            //do your thing
        }
    }
}

On Nov 9, 1:39 pm, "Bert Van den Brande" <[EMAIL PROTECTED]> wrote:
> I think defining locked as a class instance var inside AppController
> should solve the warning ?
>
> On 11/9/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:
>
>
>
> > Cypher, i think you are right. This should work.
>
> > I guess the problem is that you are *extends* the wrong class.
> > Did you alter the /libs/controllers/app_control.php file? Or you
> > created a new one in another place?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to