this is useful to define a css file specifically for a page and not overloading everything in a single css file.
in /path/to/views/.php:
Yii::app()->getClientScript()->registerCssFile(
Yii::app()->baseUrl . '/css/<file>.css'
); more »
Tags: view
yii: exception error not rendering view nor layout outside an action
because there are certain validations need to be done before an action is run, a new controller component is added to do such validations to avoid repeating codes. however, the page is not displayed properly as per error view file if there is exception… more »
yii: rendering a view
the following codes are called from a view files, and assume the file to be included is named partial.php. to render a view from the current controller, ie view files are from the same directory:$this->renderPartial('partial'); to render a… more »