I have Registration model(which has fields login, password, email, mobile) and want to use some of the fields from Registration(like login and password) in a login action, and also validate it. How can i reuse the model fields, and also Validate the fields based on Scenario.
I have Registration model(which has fields login, password, email, mobile) and want to use
Share
i think you can reuse form model and can write custom validation rules in the form and for each action. for example. hari you just give a try like this…
Controller part:
have a nice day!!!