From 7f508e187e4539a16cdbb1dd6a4b1133c53cf24d Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 29 May 2006 16:50:33 +0000 Subject: Blog now allows dynamically changing theme. --- demos/blog/protected/Common/BlogPage.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'demos/blog/protected/Common/BlogPage.php') diff --git a/demos/blog/protected/Common/BlogPage.php b/demos/blog/protected/Common/BlogPage.php index f1634a80..f69e4c48 100644 --- a/demos/blog/protected/Common/BlogPage.php +++ b/demos/blog/protected/Common/BlogPage.php @@ -2,6 +2,12 @@ class BlogPage extends TPage { + public function onPreInit($param) + { + parent::onPreInit($param); + $this->Theme=$this->Application->Parameters['ThemeName']; + } + public function getDataAccess() { return $this->getApplication()->getModule('data'); -- cgit v1.2.3