From e2cb0b52aaa02a3f3f41d0df377d189529713738 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 10 May 2007 23:00:04 +0000 Subject: Update blog tutorial --- demos/blog-tutorial/protected/pages/Day1/ShareLayout.page | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'demos/blog-tutorial/protected/pages/Day1/ShareLayout.page') diff --git a/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page b/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page index d3d1f553..d6c4d29f 100644 --- a/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page +++ b/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page @@ -135,13 +135,13 @@ We can specify master in code like the following to enable dynamic change of lay MasterClass='Path.To.NewLayout'; - } - - // ... + public function onPreInit($param) + { + parent::onPreInit($param); + $this->MasterClass='Path.To.NewLayout'; + } + + // ... } ?> -- cgit v1.2.3