diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 04:58:38 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-27 04:58:38 +0000 |
commit | 8e33f5d7b90335236e14b283ccb6d6ee5db4762d (patch) | |
tree | f43b1cff4df02f2c0c9e54565ac7f9a2d47ba5ef | |
parent | 480abae4010c036bdd7df75147614f6c3e596ded (diff) |
Add page_type() function
-rw-r--r-- | core/libraries/Theme.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |