Matthew Weier O'Phinney-3 wrote:
> 
> If you're using Zend_Application now (and you are, right? :) ), the
> place to do it is in a forms/ subdirectory of your application and/or
> module:
> 
>     application/
>         forms/
>             Login.php // Form_Login or Default_Form_Login
>         modules/
>             foo/
>                 forms/
>                     Login.php // Foo_Form_Login
> 

yup i am using Zend_Application. my directory structure is like: modular

application/
  /Bootstrap.php
  /config
     /application.ini
  /layouts
  /modules
    /lab
      /models
      /views
      /controllers
      /forms
      /Bootstrap.php
    /mod2 ...

and i used 

$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
    'basePath'  => APPLICATION_PATH . '/modules/lab',
    'namespace' => 'Lab',
));
$resourceLoader->addResourceType('form', 'forms/', 'Form')
               ->addResourceType('model', 'models/', 'Model');

to autoload my forms and models already. :)
-- 
View this message in context: 
http://www.nabble.com/Where-should-i-put-my-Zend_Forms--tp23330183p23342716.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to