예제 #1
0
파일: Dijit.php 프로젝트: navassouza/zf2
 /**
  * Set view
  *
  * Set view and enable dojo
  *
  * @param  View $view
  * @return \Zend\Dojo\View\Helper\Dijit
  */
 public function setView(View $view)
 {
     parent::setView($view);
     $this->dojo = $this->view->plugin('dojo');
     $this->dojo->enable();
     return $this;
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     $this->helper = $this->getMockForAbstractClass('Zend\\View\\Helper\\AbstractHtmlElement');
     $this->helper->setView(new PhpRenderer());
 }