Преглед изворни кода

ZF-7989: fix example to indicate where view derives

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19768 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew пре 16 година
родитељ
комит
9b33717da4
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      documentation/manual/en/module_specs/Zend_Dojo-BuildLayers.xml

+ 5 - 1
documentation/manual/en/module_specs/Zend_Dojo-BuildLayers.xml

@@ -133,9 +133,13 @@ class App_Plugin_DojoLayer extends Zend_Controller_Plugin_Abstract
 
     public function getBuild()
     {
+        $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper(
+            'ViewRenderer'
+        );
+        $viewRenderer->initView();
         if (null === $this->_build) {
             $this->_build = new Zend_Dojo_BuildLayer(array(
-                'view'      => $view,
+                'view'      => $viewRenderer->view,
                 'layerName' => 'custom.main',
             ));
         }