How to use back button

Hello,

I want to use back button on "throw new CHttpException". Do you know how?

throw new CHttpException(400,"Test");

You should register error page in main config file




'errorHandler' => array(

            'errorAction' => 'site/error',

        ),



then the framework call the error action in site controller when error happened.

in the view file of this action you can put js back funtion for a button something like


onclick="window.history.back()"