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 --- demos/hangman/index.php | 2 +- demos/hangman/protected/application.xml | 14 ------------ demos/hangman/protected/data/application.xml | 14 ++++++++++++ demos/personal/index.php | 2 +- demos/personal/protected/Data/application.xml | 31 +++++++++++++++++++++++++++ demos/personal/protected/application.xml | 31 --------------------------- 11 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 demos/hangman/protected/application.xml create mode 100644 demos/hangman/protected/data/application.xml create mode 100644 demos/personal/protected/Data/application.xml delete mode 100644 demos/personal/protected/application.xml (limited to 'demos') 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 @@ - - - diff --git a/demos/hangman/index.php b/demos/hangman/index.php index 8ec5d000..af488b0a 100644 --- a/demos/hangman/index.php +++ b/demos/hangman/index.php @@ -2,7 +2,7 @@ $basePath=dirname(__FILE__); require_once($basePath.'/../../framework/prado.php'); -$application=new TApplication($basePath.'/protected/application.xml'); +$application=new TApplication($basePath.'/protected/data/application.xml'); $application->run(); ?> \ No newline at end of file diff --git a/demos/hangman/protected/application.xml b/demos/hangman/protected/application.xml deleted file mode 100644 index 1f91fcff..00000000 --- a/demos/hangman/protected/application.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - Application.data.words - - \ No newline at end of file diff --git a/demos/hangman/protected/data/application.xml b/demos/hangman/protected/data/application.xml new file mode 100644 index 00000000..7cdc3a0b --- /dev/null +++ b/demos/hangman/protected/data/application.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + Application.data.words + + \ No newline at end of file diff --git a/demos/personal/index.php b/demos/personal/index.php index 4b7e8a5f..3e4985cc 100644 --- a/demos/personal/index.php +++ b/demos/personal/index.php @@ -8,7 +8,7 @@ if(!is_writable(APPLICATION_PATH.'/assets')) die('Please make sure that the directory "'.APPLICATION_PATH.'/assets'.'" is writable by Web server process.'); require_once(APPLICATION_PATH.'/../../framework/prado.php'); -$application=new TApplication(APPLICATION_PATH.'/protected/application.xml',APPLICATION_PATH.'/protected/Data/application.cache'); +$application=new TApplication(APPLICATION_PATH.'/protected/Data/application.xml'); $application->run(); ?> \ No newline at end of file diff --git a/demos/personal/protected/Data/application.xml b/demos/personal/protected/Data/application.xml new file mode 100644 index 00000000..d0403a50 --- /dev/null +++ b/demos/personal/protected/Data/application.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml deleted file mode 100644 index 9013121e..00000000 --- a/demos/personal/protected/application.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3