filter bug??

hello all if i use this in my controller i get loop / never ending browser error :expressionless:


	public function filters()

	{

		return array(

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

		);

	}

any ideea??

here is my entire controller




<?php


class BiteController extends Controller

{

	/**

	 * Declares class-based actions.

	 */

	public function actions()

	{

		return array(

			// captcha action renders the CAPTCHA image displayed on the contact page

			'captcha'=>array(

				'class'=>'CCaptchaAction',

				'backColor'=>0xFFFFFF,

			),

			// page action renders "static" pages stored under 'protected/views/site/pages'

			// They can be accessed via: index.php?r=site/page&view=FileName

			'page'=>array(

				'class'=>'CViewAction',

			),


		);

	}

	

	public function filters()

	{

		return array(

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

		);

	}

	

	public function accessRules()

	{

		return array(

			array('allow',  // allow all users to perform 'list' and 'show' actions

				'actions'=>array('index', 'view'),

				'users'=>array('*'),

			),

			array('allow', // allow authenticated users to perform any action

				'users'=>array('@'),

			),

			array('deny',  // deny all users

				'users'=>array('*'),

			),

		);

	}

	/**

	 * This is the default 'index' action that is invoked

	 * when an action is not explicitly requested by users.

	 */

	public function actionIndex()

	{

		$this->render('index');	

	}


	/**

	 * This is the action to handle external exceptions.

	 */

	public function actionError()

	{

	    if($error=Yii::app()->errorHandler->error)

	    {

	    	if(Yii::app()->request->isAjaxRequest)

	    		echo $error['message'];

	    	else

	        	$this->render('error', $error);

	    }

	}




}

thank you

You should allow all to access the β€˜error’ action.

added and it works but 1 more question i would have

i did set in config file to use default controller as bite not site

and if i use filters then no matter what even if in link it does show bite/otheraction it is actually requesting site/otheraction

thanks