Re: v1.2 $beforeFilter property warning

2008-01-15 Thread [EMAIL PROTECTED]
What you want looks a lot like this article in the bakery: http://bakery.cakephp.org/articles/view/extended-beforefilter-snippet It explains a method of building an array of "before-filters" and a beforeFilter-function which loops the array running each filter in turn. The error you are seeing

Re: v1.2 $beforeFilter property warning

2008-01-14 Thread Jeremi
This is how I was using it, in my AppController class RequestHandler->setContent('json', 'text/x-json'); } ?> On Jan 14, 10:52 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 10:42 PM, Jeremi <[EMAIL PROTECTED]> wrote: > > > > > I am receiving the warning: > > > Warning (512)

Re: v1.2 $beforeFilter property warning

2008-01-14 Thread Chris Hartjes
On Jan 14, 2008 10:42 PM, Jeremi <[EMAIL PROTECTED]> wrote: > > I am receiving the warning: > > Warning (512): Dispatcher::start - Controller::$beforeFilter property > usage is deprecated and will no longer be supported. Use > Controller::beforeFilter(). [CORE/cake/dispatcher.php, line 298] > > B

v1.2 $beforeFilter property warning

2008-01-14 Thread Jeremi
I am receiving the warning: Warning (512): Dispatcher::start - Controller::$beforeFilter property usage is deprecated and will no longer be supported. Use Controller::beforeFilter(). [CORE/cake/dispatcher.php, line 298] But I cannot figure out the proper way to use the method, can someone pleas