Invalid Filter?

I made a very basic filter as in the docs…


<?php

class AccessControlFilter extends CFilter

{

    protected function preFilter($filterChain)

    {

        // logic being applied before the action is executed

        return true; // false if the action should not be executed

    }

 

    protected function postFilter($filterChain)

    {

        // logic being applied after the action is executed

    }

}

And then my controller…


 /**

     * @return array action filters

     */

    public function filters() {

        return array(

            //'accessControl', // perform access control for CRUD operations

            'application.filters.AccessControlFilter'

        );

    }

But everytime I get this:

Can anybody explain to me why it is throwing and exception?

Ok I need to nest it… in another array… could not really read that from the docs:





return array(

            //'accessControl', // perform access control for CRUD operations


            array(

                //'application.filters.AccessControlFilter'

                'application.filters.AccessControl'

            )

        )