According to the above link I can create a form element in the view like so
echo $this->formText($name, $value, $attribs);
However how would I apply validation or does this need to be done in the controller using the validator component?
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.
If you did this:-
Then you would carry out the validation in the indexAction of your login controller using the validators available in Zend Validate.
Using this method you probably won’t have a form object and I wouldn’t really recommend using it unless you really don’t like Zend Form.
So, basically that was just a long winded way of saying ‘Yes this needs to be done in the controller using the validator component’.