ZF-8254: Error in Zend_View_Script example about Smarty

Issue Type: Docs: Problem Created: 2009-11-09T02:33:37.000+0000 Last Updated: 2009-11-11T05:52:55.000+0000 Status: Resolved Fix version(s): - 1.9.6 (24/Nov/09)

Reporter: Olivier Doucet (ezameku) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_View

Related issues: - ZF-8279



There is a bug in the example script in… about how to instanciate Zend_View_Smarty class. Code error:

<pre class="highlight">
//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

<pre class="highlight">
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');

because the static method getStaticHelper() is not a constructor.


Posted by Matthew Weier O'Phinney (matthew) on 2009-11-11T05:52:55.000+0000

Fixed in trunk and 1.9 release branch.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.