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
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)
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
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