02.08.2012 Views

Zend Framework Forms

Zend Framework Forms

Zend Framework Forms

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Forms</strong> in MVC Applications<br />

Integrate the form in your Controller<br />

• Create an action to process the form<br />

� Instantiate the form object<br />

� Pass submitted data to the form's isValid()<br />

method<br />

• If not valid, re-render the form<br />

• Use the action corresponding to the<br />

landing page action<br />

� If valid, do something with it...<br />

• We'll redirect<br />

5 Mar 2008<br />

| Page 69

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!