From 29d40192ed3dc0085b5e513ec071c81e03e95d3b Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 23 Mar 2006 13:25:09 +0000 Subject: Reorganized quickstart tutorial. --- demos/quickstart/protected/controls/DocLink.php | 30 +++++++++++++++++++++++ demos/quickstart/protected/controls/Layout.tpl | 6 ++--- demos/quickstart/protected/controls/TopicList.tpl | 24 ++++++------------ 3 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 demos/quickstart/protected/controls/DocLink.php (limited to 'demos/quickstart/protected/controls') diff --git a/demos/quickstart/protected/controls/DocLink.php b/demos/quickstart/protected/controls/DocLink.php new file mode 100644 index 00000000..74398efb --- /dev/null +++ b/demos/quickstart/protected/controls/DocLink.php @@ -0,0 +1,30 @@ +getViewState('ClassPath',''); + } + + public function setClassPath($value) + { + $this->setViewState('ClassPath',$value,''); + } + + public function onPreRender($param) + { + parent::onPreRender($param); + $paths=explode('.',$this->getClassPath()); + if(count($paths)>1) + { + $classFile=array_pop($paths).'.html'; + $this->setNavigateUrl(self::BASE_URL . '/' . implode('.',$paths) . '/' . $classFile); + $this->setText('API Manual'); + } + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/controls/Layout.tpl b/demos/quickstart/protected/controls/Layout.tpl index ed50954e..a69d8f50 100644 --- a/demos/quickstart/protected/controls/Layout.tpl +++ b/demos/quickstart/protected/controls/Layout.tpl @@ -22,14 +22,14 @@ + -
+ +
- -
diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index afd3380c..7b99450c 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -38,43 +38,35 @@
-
Controls
+
Control Reference
-
Data Access
+
Module Reference
-
Security
+
Service Reference
Avanced Topics