Details
Description
There is a bug in the example script in http://framework.zend.com/manual/en/zend.view.scripts.html
about how to instanciate Zend_View_Smarty class.
Code error:
//Example 1. In initView() of initializer. $view = new Zend_View_Smarty('/path/to/templates'); $viewRenderer = new Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
viewRender line must be
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
because the static method getStaticHelper() is not a constructor.
Issue Links
| This issue is duplicated by: | ||||
| ZF-8279 | View Script Template Docs Syntax Error |
|
|
|
Fixed in trunk and 1.9 release branch.