-- Jim Scherer <
[hidden email]> wrote
(on Monday, 03 March 2008, 11:54 AM -0800):
> I've decided to go the route of subclass of Zend_Form for my forms.
That's the route I recommend -- it's programmatic, and easier to debug
than configuration-based forms. Configuration-based forms are nice,
don't get me wrong, but my primary use case when developing the
component was always creating the forms programmatically.
> Currently I'm storing them in the application/models/ directory but
> that doesn't seem right to me. I was prefixing them with
> formXXXXX.php. I didn't find anything in the documentation on this.
>
> I understand that I could put it in .lib/MyLib/Form/ but I think of that for
> reusable forms that aren't application specific. For the most part my forms
> are going to be application specific, so I feel that they should be
> somewhere in the application/ structure.
It's not documented, as we haven't decided on a location for forms in
the directory hierarchy yet.
My predeliction would be in application/forms/, and prefix them with
'Form_'; in modules, they'd then be prefixed with '<Module>_Form_'.
--
Matthew Weier O'Phinney
PHP Developer |
[hidden email]
Zend - The PHP Company |
http://www.zend.com/