From dbbb551bcc3744bf09109fdb238f3e0f297775d4 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 18 May 2011 15:27:10 +0300 Subject: MainController.php set different template with ->template --- MainController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MainController.php') diff --git a/MainController.php b/MainController.php index da27b81..c654ab0 100644 --- a/MainController.php +++ b/MainController.php @@ -17,7 +17,8 @@ class MainController public $view; // Where to store the data to be rendered public $pageTitle = ''; // Title of the rendered page - public $defaultAction = ''; // Method to run when none specified + protected $template = 'default'; // The base template for this controller (view) + private $defaultAction = ''; // Method to run when none specified const OrderBy = ''; // which column to order the results by const HasMany = ''; @@ -395,7 +396,7 @@ class MainController $c = strtolower($this->class); } - $template = '../system/views/default.'.$type; + $template = '../system/views/'.$this->template.'.'.$type; $file = "../system/views/{$c}/{$view}.{$type}"; if (!is_file($file)) { -- cgit v1.2.3