-- Guillaume BABIK <[EMAIL PROTECTED]> wrote
(on Tuesday, 23 September 2008, 08:41 PM +0200):
> I have many Zend_Form in different applications.
> 
> Many of theses forms are identical.
> 
> So, how can I set a different form directory for an application?
> 
> I do the same thing with my helpers (method: addHelperPath) but I don’t find
> the method with Zend_Form

You're comparing apples and oranges. Zend_Form isn't for managing form
*classes*, it's a base class for individual form instances or classes.
Zend_View's addHelperPath() method is for loading view helpers to use
with Zend_View -- it's more analagous to the various plugins used with
Zend_Form (elements, decorators, etc.).

I suggest naming your forms following ZF coding standards and putting
them in your own library so you can re-use them, or putting them all in
the same directory (we're currently recommending application/forms/). 

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to