summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/index.php2
-rw-r--r--demos/controls/protected/application.xml3
-rw-r--r--demos/controls/protected/pages/HomePage.php2
-rw-r--r--demos/controls/protected/pages/HomePage.tpl8
-rw-r--r--demos/controls/protected/pages/config.xml3
-rw-r--r--demos/hangman/index.php2
-rw-r--r--demos/hangman/protected/data/application.xml (renamed from demos/hangman/protected/application.xml)4
-rw-r--r--demos/personal/index.php2
-rw-r--r--demos/personal/protected/Data/application.xml (renamed from demos/personal/protected/application.xml)2
9 files changed, 14 insertions, 14 deletions
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 @@
</modules>
</service>
</services>
+ <parameters>
+ <parameter id="adminEmail">foo@foo.com</parameter>
+ </parameters>
</application> \ 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')"/>
-<!
-<com:TListBox SelectionMode="Multiple">
+
+<com:TListBox SelectionMode="Single" SelectedIndexChanged="testClick" AutoPostBack="true">
<com:TListItem Text="a" Selected="true" />
- <com:TListItem Text="b" />
+ <com:TListItem Text=<%$ adminEmail %> />
<com:TListItem Text="c" />
<com:TListItem Text="d" Selected="true" />
</com:TListBox>
@@ -69,7 +69,7 @@
<com:TListItem Text="c" Selected="true" />
<com:TListItem Text="d" />
</com:TDropDownList>
-!>
+
<%# $this->Page->TextBox->Text %>
</div>
</com:TForm>
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 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
- <authorization>
- <deny pages="home" users="?" verb="post" />
- </authorization>
<pages Theme="BlueTheme">
<page id="home" class="HomePage" />
<page id="login" class="LoginPage" />
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/data/application.xml
index 1f91fcff..7cdc3a0b 100644
--- a/demos/hangman/protected/application.xml
+++ b/demos/hangman/protected/data/application.xml
@@ -2,8 +2,8 @@
<application id="hangman" mode="Debug">
<paths>
- <alias id="Application" path="." />
- <alias id="Pages" path="pages" />
+ <alias id="Application" path=".." />
+ <alias id="Pages" path="../pages" />
</paths>
<services>
<service id="page" BasePath="Pages" DefaultPage="home" />
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/application.xml b/demos/personal/protected/Data/application.xml
index 9013121e..d0403a50 100644
--- a/demos/personal/protected/application.xml
+++ b/demos/personal/protected/Data/application.xml
@@ -2,7 +2,7 @@
<application>
<paths>
- <alias id="Application" path="." />
+ <alias id="Application" path=".." />
</paths>
<!-- modules configured and loaded for all services -->
<modules>