I am trying to give my form a view script decorator like so:
public function setupViewScript() {
//Work out the path based on the class name here
//****
//Set decorator
$form_decorator->setViewScript($form_view_path);
$this->setDecorators( array( array('ViewScript', array('viewScript' => $form_decorator->getViewScript()))));
}
However, I don't want to use the default module; I want to load a specific view script depending on the form's class name. Since I may use a particular form in multiple modules, I want all of my form view scripts to be in ./application/form/views/scripts/.
I'm having trouble setting the module to be "form", instead of the current module, however. Can anyone provide an insight?
Thanks