From 38082096909424c23032224365c90aa5189eb6f0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 4 Mar 2016 20:26:52 -0500 Subject: Move Template::layout() to LayoutHelper --- app/Core/Template.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'app/Core/Template.php') diff --git a/app/Core/Template.php b/app/Core/Template.php index fa7b65ec..f85c7f28 100644 --- a/app/Core/Template.php +++ b/app/Core/Template.php @@ -69,23 +69,6 @@ class Template return ob_get_clean(); } - /** - * Render a page layout - * - * @access public - * @param string $template_name Template name - * @param array $template_args Key/value map - * @param string $layout_name Layout name - * @return string - */ - public function layout($template_name, array $template_args = array(), $layout_name = 'layout') - { - return $this->render( - $layout_name, - $template_args + array('content_for_layout' => $this->render($template_name, $template_args)) - ); - } - /** * Define a new template override * -- cgit v1.2.3