Top "Yii" questions

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

Yii multi page form wizard best practice

I am trying to build a multi-page form with Yii, but am quite new to PHP and Yii and am …

php yii yii1.x
How to create absolute url on Yii https?

I am creating a website which runs on https.. But when i create absolute url using echo Yii::app()-&…

php yii yii-components
yii -> dropDownList -> CHtml::listData -> set selected value

How can I set the selected value in the following statement: echo $form->dropDownList( $model, 'land_id', CHtml::listData(…

drop-down-menu yii selected yii-chtml
model->attributes in Yii2 always has NULL value

I have one temporary model as viewModel. In my CRUD actions (for example actionCreate) I want to get this viewModel …

php yii-extensions yii yii2
How to convert model data objects array to dataProvider

Suppose I have model User which have many to many relation to itself named as friends. so $user->friends (…

php model yii dataprovider
How to create a link with confirmation dialog using Yii?

How can I create a link with a confirmation dialog in Yii framework? Let's say I have CHtml::link('Delete',…

php yii
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I am a newbie programmer, so I will need your help! Locally the webapp works ok with the db on …

php mysql yii cloudcontrol
addColumn yii migration position

I want to add a column at the seventh place in the table, I am using $this->addColumn('table_…

php yii migration yii1.x
What is the difference between $with and $joinWith in Yii2 and when to use them?

In the API documentation it is specified that $joinWith - A list of relations that this query should be joined …

php yii yii2
How to use 'IN (1,2,3)' with findAll?

I need to get a couple of Students from the database, and I have their primary keys in a comma-separated …

activerecord yii