Просмотр исходного кода

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 лет назад
Родитель
Сommit
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',
             ));
         }