From e08aa82e5e4d2bc06bb8f98654806a15bdefc994 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 21 Dec 2005 17:06:12 +0000 Subject: Added support to global state. --- demos/controls/index.php | 2 +- demos/controls/protected/application.xml | 3 +++ demos/controls/protected/pages/HomePage.php | 2 +- demos/controls/protected/pages/HomePage.tpl | 8 ++++---- demos/controls/protected/pages/config.xml | 3 --- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'demos/controls') diff --git a/demos/controls/index.php b/demos/controls/index.php index d5f7caf3..95d06df0 100644 --- a/demos/controls/index.php +++ b/demos/controls/index.php @@ -2,7 +2,7 @@ require_once(dirname(__FILE__).'/../../framework/prado.php'); -$application=new TApplication(dirname(__FILE__).'/protected/application.xml',dirname(__FILE__).'/protected/application.cache'); +$application=new TApplication(dirname(__FILE__).'/protected/application.xml'); $application->run(); ?> \ No newline at end of file diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml index 56f37d03..20c84e3f 100644 --- a/demos/controls/protected/application.xml +++ b/demos/controls/protected/application.xml @@ -27,4 +27,7 @@ + + foo@foo.com + \ No newline at end of file diff --git a/demos/controls/protected/pages/HomePage.php b/demos/controls/protected/pages/HomePage.php index 50bdc9e7..1b513aba 100644 --- a/demos/controls/protected/pages/HomePage.php +++ b/demos/controls/protected/pages/HomePage.php @@ -14,7 +14,7 @@ class HomePage extends TPage parent::onLoad($param); if(!$this->IsPostBack) { - $this->dataBind(); + //$this->dataBind(); } } diff --git a/demos/controls/protected/pages/HomePage.tpl b/demos/controls/protected/pages/HomePage.tpl index d1dd7724..5d016682 100644 --- a/demos/controls/protected/pages/HomePage.tpl +++ b/demos/controls/protected/pages/HomePage.tpl @@ -55,10 +55,10 @@ Click="linkClicked" onclick="javascript:alert('you hit me')"/> - + + - + /> @@ -69,7 +69,7 @@ -!> + <%# $this->Page->TextBox->Text %> diff --git a/demos/controls/protected/pages/config.xml b/demos/controls/protected/pages/config.xml index c90a6974..ce3ced8a 100644 --- a/demos/controls/protected/pages/config.xml +++ b/demos/controls/protected/pages/config.xml @@ -1,9 +1,6 @@ - - - -- cgit v1.2.3