Your PHP code $this->widget('zii.widgets.grid.CGridView', array( 'id' => 'YOUR_UNIQUE_ID', 'dataProvider' => $model->search(), so on... For... 


1. Query with condition/s Example //This returns data that match with predefined conditions $arrResults = YourModelName::model()->findAllByAttributes(array('name'=>$name)); //To... 


The following are ways to publish and register CSS and JS at extension widget. 1. First Method: Widget JS contains multiple files //Another way to publish widget JS folder with multiple... 


The following are just collection tutorial links during my development using YII. Hope it will help you also. 1. Simple yet excellent example for behavior, click here. 2. Its time to... 


You need to place .htaccess at the root with the following contents RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1... 


1. Download http://www.yiiframework.com/download/ 2. Copy contents of demos/blog/  to working directory 3. Copy folder framework to working directory working directory -assets -css -framework -protected -themes -index.php -index-test.php 4.... 


Stop Talking, lets get into action. 1. Download the latest version of Debug Tool Bar. 2. Extract and Install it at protected\extensions 3. Open and edit protected\config\main.php, Add...