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