In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?
The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().