In yii2 we can create form without create FormModel. Here we go
In yii2 we can create form without create FormModel. Here we go
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way
Suppose you have an Application in Yii that manages hotels each one has many customers.
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field...
Everyone have seen a multilayer menu in several CMS
There are cases you want to update a record on CGridview directly
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).