How to avoid error fucntion redirecting in some controller

Hi,

How to Stop redirect Error function in Some COntroller…

what you want exactly??

you want to display any custom errors message on any error cases??

No,I Got empty result in my controller function In Empty result also Redirect that error function,How to stop redirect that error function at that time.

Try doing something like this in your controller action:




public function actionTest()

{

	try

	{

		...	

		normal code

		...


	}

	catch(Exception $ex)

	{

		$ex = null; // Cancel Exception >> cancel redirect

		... // Do your own thing here

	}

}