Ejemplo n.º 1
0
 public function show($parameters)
 {
     foreach ($parameters as $k => $v) {
         ${$k} = $v;
     }
     $this->start('_content');
     if (!is_file($this->_filename)) {
         throw new Exception($this->_filename . " not found");
     }
     $view =& $this;
     include kanon::getThemedViewFilename($this->_filename);
     $this->_content = '';
     $this->end();
     if ($this->_layout !== null) {
         $this->_filename = dirname($this->_filename) . '/' . $this->_layout;
         $this->_layout = null;
         $parameters = $this->_layoutParameters;
         $this->_layoutParameters = null;
         $this->show($parameters);
     } else {
         echo $this->get('_content');
     }
 }