diff options
author | xue <> | 2006-11-25 20:51:43 +0000 |
---|---|---|
committer | xue <> | 2006-11-25 20:51:43 +0000 |
commit | cb0aeb81d77d7170196f1b667978f56c6018100b (patch) | |
tree | 53deb6628356454d7e4348641135c84c1a909292 /demos | |
parent | af340f68ef716b9a3c021a8cabc40068068bf3bf (diff) |
merge from 3.0 branch till 1508.
Diffstat (limited to 'demos')
7 files changed, 15 insertions, 14 deletions
diff --git a/demos/blog/protected/Common/BlogErrorHandler.php b/demos/blog/protected/Common/BlogErrorHandler.php index 012f2e4c..06042be1 100644 --- a/demos/blog/protected/Common/BlogErrorHandler.php +++ b/demos/blog/protected/Common/BlogErrorHandler.php @@ -36,7 +36,7 @@ class BlogErrorHandler extends TErrorHandler $message=$exception->getMessage();
Prado::log($message,TLogger::ERROR,'BlogApplication');
$message=urldecode($this->getApplication()->getSecurityManager()->hashData($message));
- $this->Response->redirect($this->Service->constructUrl('ErrorReport',array('msg'=>$message)));
+ $this->Response->redirect($this->Service->constructUrl('ErrorReport',array('msg'=>$message),false));
}
else
parent::handleExternalError($statusCode,$exception);
diff --git a/demos/blog/protected/Common/BlogPage.php b/demos/blog/protected/Common/BlogPage.php index dc59ba7b..aaf0c7e1 100644 --- a/demos/blog/protected/Common/BlogPage.php +++ b/demos/blog/protected/Common/BlogPage.php @@ -32,12 +32,12 @@ class BlogPage extends TPage public function gotoDefaultPage()
{
- $this->Response->redirect($this->Service->constructUrl($this->Service->DefaultPage));
+ $this->gotoPage($this->Service->DefaultPage);
}
public function gotoPage($pagePath,$getParameters=null)
{
- $this->Response->redirect($this->Service->constructUrl($pagePath,$getParameters));
+ $this->Response->redirect($this->Service->constructUrl($pagePath,$getParameters,false));
}
public function reportError($errorCode)
diff --git a/demos/blog/protected/Portlets/SearchPortlet.php b/demos/blog/protected/Portlets/SearchPortlet.php index c218a739..10ef0499 100644 --- a/demos/blog/protected/Portlets/SearchPortlet.php +++ b/demos/blog/protected/Portlets/SearchPortlet.php @@ -31,7 +31,7 @@ class SearchPortlet extends Portlet public function search($sender,$param)
{
$keyword=$this->Keyword->Text;
- $url=$this->Service->constructUrl('SearchPost',array('keyword'=>$keyword));
+ $url=$this->Service->constructUrl('SearchPost',array('keyword'=>$keyword),false);
$this->Response->redirect($url);
}
}
diff --git a/demos/personal/protected/Pages/Layout.php b/demos/personal/protected/Pages/Layout.php index 37ed95d4..f5009542 100644 --- a/demos/personal/protected/Pages/Layout.php +++ b/demos/personal/protected/Pages/Layout.php @@ -5,7 +5,7 @@ class Layout extends TTemplateControl public function logout($sender,$param)
{
$this->Application->getModule('auth')->logout();
- $this->Response->redirect($this->Service->constructUrl('Home'));
+ $this->Response->redirect($this->Service->constructUrl('Home',null,false));
}
}
diff --git a/demos/quickstart/protected/controls/SearchBox.php b/demos/quickstart/protected/controls/SearchBox.php index b579cd91..6fb8e376 100644 --- a/demos/quickstart/protected/controls/SearchBox.php +++ b/demos/quickstart/protected/controls/SearchBox.php @@ -1,25 +1,25 @@ <?php
-class SearchBox extends TTemplateControl
+class SearchBox extends TTemplateControl
{
- public function getText()
+ public function getText()
{
$this->ensureChildControls();
return $this->getRegisteredObject('search')->getText();
}
-
+
public function getTextBox()
{
$this->ensureChildControls();
return $this->getRegisteredObject('search');
}
-
+
public function getButton()
{
$this->ensureChildControls();
return $this->getRegisteredObject('find');
}
-
+
public function onInit($param)
{
parent::onInit($param);
@@ -32,7 +32,7 @@ class SearchBox extends TTemplateControl if(strlen($query = $this->search->getText()) >0)
{
$ps = $this->getApplication()->getPageService();
- $page = $ps->constructUrl('Search', array('q' => $query));
+ $page = $ps->constructUrl('Search', array('q' => $query), false);
$this->getApplication()->getResponse()->redirect($page);
}
}
diff --git a/demos/quickstart/protected/pages/Controls/Repeater.page b/demos/quickstart/protected/pages/Controls/Repeater.page index d8f3fd0a..3534c603 100644 --- a/demos/quickstart/protected/pages/Controls/Repeater.page +++ b/demos/quickstart/protected/pages/Controls/Repeater.page @@ -19,7 +19,7 @@ To populate data into the repeater items, set <tt>DataSource</tt> to a valid dat </p>
<com:TTextHighlighter Language="php" CssClass="source">
class MyPage extends TPage {
- protected function onLoad($param) {
+ public function onLoad($param) {
parent::onLoad($param);
if(!$this->IsPostBack) {
$this->Repeater->DataSource=$data;
diff --git a/demos/quickstart/protected/pages/GettingStarted/Introduction.page b/demos/quickstart/protected/pages/GettingStarted/Introduction.page index e52f4acf..52b7d9af 100644 --- a/demos/quickstart/protected/pages/GettingStarted/Introduction.page +++ b/demos/quickstart/protected/pages/GettingStarted/Introduction.page @@ -1,16 +1,17 @@ <com:TContent ID="body" >
<h1 id="101">Welcome to the PRADO Quickstart Tutorial</h1>
<p>
-This Quickstart tutorial is provided to help you quickly start building your own Web applications based on PRADO version 3.0.
+This Quickstart tutorial is provided to help you quickly start building your own Web applications based on PRADO version 3.x.
</p>
<p>
You may refer to the following resources if you find this tutorial does not fulfill all your needs.
</p>
<ul>
+ <li><a href="http://www.pradosoft.com/docs/classdoc/">PRADO Classes</a></li>
<li><a href="http://www.pradosoft.com/docs/manual/">PRADO API Documentation</a></li>
<li><a href="http://www.pradosoft.com/forum/">PRADO Forum</a></li>
<li><a href="http://www.pradosoft.com/wiki/">PRADO Wiki</a></li>
- <li><a href="http://trac.pradosoft.com/wiki/">PRADO Trac</a></li>
+ <li><a href="http://trac.pradosoft.com/prado/">PRADO Trac</a></li>
</ul>
</com:TContent>
\ No newline at end of file |