logo       

Re: Zend_Form: Element grouping: msg#00189

php.zend.framework.mvc

Subject: Re: Zend_Form: Element grouping

The prefix path needs to be set in your Bootstrap where you are setting up you View. You need to add a helper path to the view, and then register it with Zend_Controller_Action_HelperBroker Something like this:
        $view = new Zend_View;
        $view->setEncoding('UTF-8');
        $view->doctype('XHTML1_STRICT');
        // Location of view helpers
        $view->addHelperPath(
            '../library/App/View/Helper',
            'App_View_Helper_'
        );
        $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
        Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
        Zend_Layout::startMvc();
Stephan Stapel wrote:
How would your code look if one would indeed change the helper class name from Zend_View_Helper_FormDate to App_View_Helper_FormDate . I.e. where would I have to set addPrefix() or addPrefixPath()?


View this message in context: Re: Zend_Form: Element grouping
Sent from the Zend MVC mailing list archive at Nabble.com.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise