This is how I was using it, in my AppController class
<?php
class AppController extends Controller
{
    public $components = array('RequestHandler');
    public $beforeFilter = array('setContent');

    public function setContent()
    {
        $this->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): 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
> > please help?
>
> Well...
>
> beforeFilter is actually a method for a controller
>
> class FooController extends AppController {
>      function beforeFilter() {
>           // do all you beforeFiltery stuff here
>      }
>
> }
>
> In what context were you using $beforeFilter, as that is something
> that I have not seen before.
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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