public function getLayoutBlock(Twig_Environment $env, $name) { return $env->getView()->layout()->__get($name); }
/** * 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); }