I am try to use unique validator for email in my model, but it doesn't work.. i mean no notification that display in form when user input the same ema ...
I am try to use unique validator for email in my model, but it doesn't work.. i mean no notification that display in form when user input the same ema ...
I want to make custom validation function like built-in validation required. I have example code here: Model: View: Controller: in this exa ...
I have MyEntity.php model. As a part of the model script, there are some rules and some scenarios defined: I need to be able to have different scen ...
I faced with some problem in TblActiveForm. I have few models in 1 action and I need validate it in ajax. The simple server validation works fine, but ...
I have a form Message In which there are 2 fields message and file I want the validator to validate either one of them field as required Here is wha ...
I have a Yii form accept first name, last name and email from user. Using an add more link, users can add multiple rows of those three elements. For ...
I have a problem in custom validation rules in Yii. I have some fields like day1s, day1e, day2s, day2e etc. I want to check whether these attributes h ...
I read similar topics of this problem, but I don't found solution.I have a form which load via ajax. When all data is valid, they don't save in databa ...
There are 2 needed functions: set password when registering and change password, if user forgot it. When user signs up, password length must be at lea ...
I am giving my users the ability to change their account email. To do so, when they submit the new email that they would like to switch to, I am stori ...
would like to ask if is there a way that I can group multiple rules in the model into 1 so that i can reduce the amount of codes especially on places ...
I've recently implemented my own error function using the Yii rules. Within the function I am checking whether the phone number and pin given are the ...
I have a problem with CActiveRecord.rules Photo_path should be required only when the model is created, in update view it can be empty. I dont kno ...
I was wandering is there any chance to use scenario for rules, in my model I have and in my view I have something like this This is just a pa ...
My application is not working correctly with my input parametres. I have 2 rules at config urlManager: At my action I try 2 inputs: id12id78 and ...
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 ex ...
I have a field "CompanyName", and i need to have validation. this is what i have : generated JS : What i want ( includes trim in js side ) : ...
link "/en/page/index" works fine links "/" and "/en" returns the error "Unable to resolve the request" page / index ". what is wrong with the rules ...
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 defin ...
Here is my rules method: And here is my view (fields which give a hard time): Some informations: enableClientValidation and enableAjaxValida ...