Exemplo n.º 1
0
 public static function display(array $vars = array(), $dirTpl = null)
 {
     $path = Conf::get('app.path') . '/src/Views/Twig_Tpl/Mails/Matrices';
     $tplObj = new Tpl($path);
     $dirTpl = $dirTpl === null ? self::DEFAULT_FILE_TPL : $dirTpl;
     return $tplObj->addVars($vars)->getTpl($dirTpl);
 }
Exemplo n.º 2
0
 /**
  * @param array $vars
  * @param string $tpl
  * @return string
  */
 public static function display(array $vars = array(), $dirTpl = null)
 {
     $dirTpl = $dirTpl === null ? self::DEFAULT_FILE_TPL : $dirTpl;
     $tplObj = new Tpl(self::PATH_TO_FORM_TPL);
     return $tplObj->addVars($vars)->getTpl($dirTpl);
 }
Exemplo n.º 3
0
 public static function display(array $vars = array(), $dirTpl = null)
 {
     $tplObj = new Tpl($dirTpl);
     return $tplObj->addVars($vars)->getTpl();
 }