From 20f6be62c827ab975c652f0d841cfa85d33405ed Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Dec 2008 01:49:25 +0000 Subject: Add Admin_View --- core/libraries/Admin_View.php | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 core/libraries/Admin_View.php (limited to 'core/libraries/Admin_View.php') diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php new file mode 100644 index 00000000..37ac10d1 --- /dev/null +++ b/core/libraries/Admin_View.php @@ -0,0 +1,45 @@ +theme_name = $theme_name; + $this->set_global('theme', $this); + $this->set_global('user', user::active()); + } + + public function url($path) { + return url::file("themes/{$this->theme_name}/$path"); + } + + public function display($page_name, $view_class="View") { + return new $view_class($page_name); + } +} \ No newline at end of file -- cgit v1.2.3