diff options
author | xue <> | 2006-05-29 16:50:33 +0000 |
---|---|---|
committer | xue <> | 2006-05-29 16:50:33 +0000 |
commit | 7f508e187e4539a16cdbb1dd6a4b1133c53cf24d (patch) | |
tree | f3c47d2b436113407abaa99b2b70426c7a37a083 /demos/blog/protected/Common/BlogPage.php | |
parent | 05869f23f798c9393e2bc6d310d56a97a11d1acd (diff) |
Blog now allows dynamically changing theme.
Diffstat (limited to 'demos/blog/protected/Common/BlogPage.php')
-rw-r--r-- | demos/blog/protected/Common/BlogPage.php | 6 |
1 files changed, 6 insertions, 0 deletions
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');
|