Suppose you have Products,Categories and each product belongs in many categories
Suppose you have Products,Categories and each product belongs in many categories
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 ?
Note the tag {{homeUrl}}
will be dynamically replaced at runtime.
The only differences in Yii 2 is that its much simpler due to available functions in the Model class for loading and validating models.