Top "Yii-validation" questions

yii: how to make a unique rule for two attributes

I have a table like this: (id, name, version, text). (name, version) is unique key, how can i make a …

yii yii1.x yii-validation
how we can add rule in Yii model for input must be greater than 0

do anyone know how can I apply rule in Yii model for input must be greater than 0 value, without any …

validation yii model yii-validation
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
scenario for validation rules in yii

I was wandering is there any chance to use scenario for rules, in my model I have public function rules() { …

php validation yii scenarios yii-validation
Yii2: scenarios() model method

There are 2 needed functions: set password when registering and change password, if user forgot it. When user signs up, password …

php yii2 yii-validation
How to add rules using Yii Framework in model?

In an web application ,I need to add some rules in the model when create a object. But when I …

php yii yii-validation