Esempio n. 1
0
 /**
  * @return WindView
  */
 public function getWindView()
 {
     if ($this->windView === null) {
         $this->_getWindView();
         $module = Wind::getApp()->getModules();
         if (isset($module['template-path'])) {
             $this->windView->templateDir = $module['template-path'];
         }
         if (isset($module['compile-path'])) {
             $this->windView->compileDir = $module['compile-path'];
         }
         if (isset($module['theme-path'])) {
             $this->windView->setThemePackage($module['theme-path']);
         }
     }
     return $this->windView;
 }
 /**
  * Tests WindForward->setWindView()
  */
 public function testSetWindView()
 {
     $windView = new WindView();
     $windView->setConfig(array('template-dir' => 'template/long', 'compile-dir' => 'compile/data'));
     $this->WindForward->setWindView($windView);
     $this->assertEquals($this->WindForward->getWindView(), $windView);
 }