Пример #1
0
 public function getLayoutBlock(Twig_Environment $env, $name)
 {
     return $env->getView()->layout()->__get($name);
 }
Пример #2
0
 /**
  * Calls the ZF translate view helper and
  * returns the translated string.
  *
  * @param string           $input The input to translate
  * @return string          The translated output
  */
 public function trans($input)
 {
     return $this->env->getView()->translate($input);
 }