示例#1
0
文件: view.php 项目: alexqwert/kanon
 public function render($filename, $parameters, $uri = null)
 {
     if ($uri === null) {
         $uri = $this->_uri;
     }
     $view = new view();
     $view->setFilename(dirname($this->_filename) . '/' . $filename);
     $view->setUri($uri);
     $view->show($parameters);
 }
示例#2
0
 protected function _view($filename, $parameters = array(), $uri = null)
 {
     if ($uri === null) {
         $uri = $this->rel();
     }
     $view = new view();
     //echo $filename;
     $view->setFilename($filename);
     $view->setUri($uri);
     $view->show($parameters);
     //include($filename);
 }