How do I directly input validation as required into input box on ctp file without going to controller or model in Cakephp?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would use JQuery, with the Jquery Validaton plugin.
It is rather straight foreward to include and write the scripts for.
In the view (using a Users form view for the example)
In the layout under the header part
In the user controller
I did testrun the code to confirm it works.