View Assistant Confirmation

ZF reference for reference

According to the link above, I can create a form element in the view this way

echo $this->formText($name, $value, $attribs);

How would I apply verification or should I do this in the controller using the authentication component?

+3
source share
2 answers

If you have done this: -

<form action='/login'>
echo $this->formText($name, $value, $attribs);
echo $this->formSubmit($name, $value, $attribs);
</form>

You will then check in the indexAction of your login using the validators available in Zend Validate .

Using this method, you probably won't have a form object, and I would not recommend using it if you really don't like the Zend form.

, : ", , ".

+4

- Zend_Form .

0

All Articles