In an web application ,I need to add some rules in the model when create a object. But when I add My rules to the model there are some mistake. For example the mobile number user input when sumit the form.
In view page,there are somew inputs need user to complete ,then I want to add some rules to validate the user input to prevent use input some invalided values.That means using my own validate funcion.
Yours who using Yii Framework,I need Your help,thank you.
requiredvalidation is added ,and I need to add other validate .First the inputs can't contain the special code like <html> or *_$...,or use the regular expression to validate.