Hi all. I have configurated ZF to work with module (addModulePath at the bootstrap).

Now, I have a working form with viewscript decorator (module 'user'):

       $this->setAction('ACTION')
       ->setMethod('post')
       ->setName('newUser')
->setDecorators( array( array('ViewScript', array('viewScript' => 'forms/profileForm.phtml'))))
       ->setEnctype('multipart/form-data')
       ;

Now I want that this form become a subform (so I can reuse it (validators, filter, etc etc) for add user) in another form of another module (admin).

$user = new User_ProfileForm();
$this->addSubForm($user,'user');

But ZF search profileForm.phtml file in the "admin/views/script/forms" directory and not in the "user/views/script/forms" directory. How can I set this path ? I don't want to mantain 2 identical HTML file. I want to have 1 only file to mantain.

Tnx.

M.

--
Michel 'ZioBudda' Morelli                       [email protected]
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: [email protected] JABBER: [email protected]

Reply via email to