Chttpexception No Style

hi freinds

look at please :

this is MainController :


public function filters()

{

     return array(

         'accessControl' 

     );

}

	

public function accessRules()

{

	return array(

			

		array('deny',

			'users'=>array('demo','abedi98'),

		),

	);

}

when use it this code :


array('deny',

	'users'=>array('demo','abedi98'),

),

run this url : http://localhost/yii/index.php?r=main/index

Have you set error action? Does error action works properly?

YES.


public function actionError()

	{

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

	    {

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

	    		echo $error['message'];

	    	else

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

	    }

	}

if set actions value in array


array('deny',

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

    'users'=>array('demo','abedi98'),

),

Right and wrong does not, But I do not want use ‘actions’

add the error action to accessRules




public function accessRules()

        {

            return array(

                array(

                    'allow',

                    'actions' => array('login', 'logout', 'error'),

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

                ),

            );

        }