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); }
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); }