All I want to do is make a form, in Zend Framework, that looks like this:
<p id="foo">
<form action="#" method="post">
<label>Start:</label>
<input id="start" type="text" name="start" />
<label>End:</label>
<input id="end" type="text" name="end" />
<input type="submit" name="submit" value="Submit" />
</form>
</p>
and I simply cannot do it. 🙁 I can stick in in the view like that but then I don’t get validation and filtering.
Any tips on how to figure out decorators and Zend_Form?
This works. I’ve adapted this from a form I’m using so I stuck in a few other things like ID’s that you can use if you like. Useful to see how it all comes together anyway:
In my controller:
I then call that elsewhere in my controller, like:
Then you can use it in your view like: