コード例 #1
0
ファイル: View.php プロジェクト: HappyKennyD/teest
 public function render($file = NULL)
 {
     if ($file !== NULL) {
         $this->set_filename($file);
     }
     if (empty($this->_file)) {
         throw new Kohana_View_Exception('You must set the file to use within your view before rendering');
     }
     // Combine local and global data and capture the output
     return Kotwig_View::capture($this->_file, $this->_data);
 }