コード例 #1
0
ファイル: View.php プロジェクト: mickrip/fwoot-core
 static function twig($template_file, $inject = '')
 {
     self::output(\Fw\Twig::factory($template_file, $inject)->render());
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: mickrip/fwoot-core
 /**
  * Twig Helper. This maybe should be somewhere else ;)
  *
  * @param $template_file
  * @param string $inject
  */
 function twig($template_file, $inject = '')
 {
     $this->output(\Fw\Twig::factory($template_file, $inject)->render());
 }