I create any view and use it in controller this way:
$this->render('myview', array(
'var1'=>$value1,
'var2'=>$value2
));
View has code with usage $var1 and $var2 variables:
<h1>It is my view</h1> echo $var1.'<br />'.$var2;
I want if I don't set any variable in my view I have received error or notice message from yii framework. For example if I render my view the way without setting variables like that:
$this->render('myview')i want to get error mesage.
Now I can't do that. I set define('YII_DEBUG',TRUE) in YiiBase.php file and it have not helped me.
How to do that?
Thanks.

Help












