hooks as $name => $template) { if ($hook === $name) { $buffer .= $this->template->render($template, $variables); } } return $buffer; } /** * Attach a template to a hook * * @access public * @param string $hook * @param string $template * @return \Helper\Hook */ public function attach($hook, $template) { $this->hooks[$hook] = $template; return $this; } }