Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

For What Inputs Should I Define Rules In Model Class ?

$
0
0
Should I define rules for all of input elements in a model class?
For example the model form has 2 input type element and a textarea.
Can I just define rules for those two input type and not for textarea ?

I have done so but the text entered inside the textarea isn't save but if I put a rule for example for its length it will be saved.

Viewing all articles
Browse latest Browse all 18717

Trending Articles