Beispiel #1
0
 /**
  * Get view instance
  *
  * @return view instance
  */
 protected function getView($view, array $varArray = array())
 {
     if ($this->view->isExist($view)) {
         if (count($varArray) > 0) {
             $this->tmp = $varArray;
             extract($this->tmp);
         } else {
             if (count($this->tmp) > 0) {
                 extract($this->tmp);
             }
         }
         require_once $this->view->baseDir . "/" . $view . '.php';
     }
 }