示例#1
0
 public function render($_action = null)
 {
     if (!$_action) {
         $_action = $this->action;
     }
     $_view = APPBASE . 'views' . DS . $this->name . DS . $_action . EXT;
     if (!is_file($_view)) {
         $this->action = $_action;
         iGrape::missingView($this);
     } else {
         iGrape::renderFile($_view, $this->layout, $this->data);
     }
 }
示例#2
0
 public function render($_action = null)
 {
     include CONFBASE . '_conf' . EXT;
     if (!isset($conf)) {
         exit("<pre>You must configure the file _conf" . EXT);
     }
     $this->conf = $conf;
     AppController::before();
     if (!$_action) {
         $_action = $this->action;
     }
     $_view = APPBASE . 'views' . DS . $this->name . DS . $_action . EXT;
     if (!is_file($_view)) {
         $this->action = $_action;
         iGrape::missingView($this);
     } else {
         iGrape::renderFile($_view, $this->layout, $this->data);
     }
     AppController::after();
 }