in yii there are different ways to include stylesheets. it can be done by inserting html code into header page, as shown in default layout files (eg 'yii/protected/views/layouts/main.php). it can also be done by calling registerCssFile().
i've been usi… more »
Category: yii
yii: include view specific css
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 »
yii: CGridView and show detail in CJuiDialog
instead of going to a different page to view detail from a grid row, i'd like to show detail from pop-in / dialog box within the same page. i found an article from yii's documentation that does exactly that. the article provide solutions to open one or… more »
yii: default value for date picker field and CJuiDatePicker
setting a default date value to a date picker field is not so straightforward. as in, simply set a property for the CJuiDatePicker widget.
there are 2 ways to do it. these are based on some forum posts i found a while ago.
method 1 - give the attribut… more »
yii: autocomplete field with CJuiAutoComplete
i have previously written a post on the same topic with CAutoComplete. since CAutoComplete is depreciated (since V113) and replaced with CJuiAutoComplete, i should keep my notes up-to-dated.
i find that this is easier to implement. i found a solution b… more »