Top "Yii" questions

Use for questions about any version of Yii, an open-source MVC framework for writing web 2.0 applications in PHP5+

How to change $model->attributes value in controller - Yii

UserMasterController Code: public function actionUpdate($id){ $model=$this->loadModel($id); if(isset($_POST['UserMaster'])){ $model->attributes=$_POST['UserMaster']; $…

controller yii yii-components
How to add raw HTML in Yii CMenu label

I create a menu like a Twitter Bootstrap navbar with CMenu widget: <?php $this->widget( 'zii.widgets.CMenu', …

html yii cmenu
Get base URL in Yii console application

How to get base URL in a Yii CConsoleApplication application? I tried Yii::app()->request->getBaseUrl(true) …

php yii console-application yii1.x
Yii: Catching all exceptions for a specific controller

I am working on a project which includes a REST API component. I have a controller dedicated to handling all …

yii
Need listbox with multiple selection - in yii

I need listbox of multiple selection in yii, i have code of form area but its saving to database as …

yii html-select yii-chtml
show stack trace in yii framework

we get stack trace when an error occurs in the execution, like in the following picture . see this I would …

php yii yii-extensions
Yii: validation rules that always apply except one scenario

I know that you can have a validation rule that applies only for one scenario: array('username', 'exist', 'on' => …

php validation yii model yii-validation
How do I set table prefix in Yii

In a project I am working on I need to set a table prefix for the project which I can …

php yii
colorbox (which uses live) not rebinding after jQuery ajax call

I have a list of elements that I am loading via ajax (using jQuery's .load()). Each of these elements has …

javascript jquery ajax colorbox yii
CArrayDataProvider with CGridView pagination Yii

I'm trying to do a pagination on a CGridView using CArrayDataProvider (my $rawData is a custom array - not from …

php yii cgridview