From 8e33f5d7b90335236e14b283ccb6d6ee5db4762d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 27 Nov 2008 04:58:38 +0000 Subject: Add page_type() function --- core/libraries/Theme.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php index 6ae08a4b..484673eb 100644 --- a/core/libraries/Theme.php +++ b/core/libraries/Theme.php @@ -34,6 +34,10 @@ class Theme_Core { return $this->template->item; } + public function page_type() { + return $this->template->page_type; + } + public function display($page_name, $view_class="View") { return new $view_class($page_name); } -- cgit v1.2.3