From 439b0b12dc8f6cbeb769fe4f2c0061ff9d3c9d31 Mon Sep 17 00:00:00 2001 From: carlgmathisen <> Date: Tue, 2 Dec 2008 00:02:51 +0000 Subject: php configuration type --- demos/address-book/index_php.php | 27 +++++++++++++ demos/address-book/protected/application.php | 57 ++++++++++++++++++++++++++++ demos/personal/index_php.php | 13 +++++++ demos/personal/protected/Pages/Layout.tpl | 2 +- demos/personal/protected/Pages/config.php | 18 +++++++++ demos/personal/protected/application.php | 44 +++++++++++++++++++++ demos/personal/protected/application.xml | 7 +++- 7 files changed, 165 insertions(+), 3 deletions(-) create mode 100644 demos/address-book/index_php.php create mode 100644 demos/address-book/protected/application.php create mode 100644 demos/personal/index_php.php create mode 100644 demos/personal/protected/Pages/config.php create mode 100644 demos/personal/protected/application.php (limited to 'demos') diff --git a/demos/address-book/index_php.php b/demos/address-book/index_php.php new file mode 100644 index 00000000..17cf61ad --- /dev/null +++ b/demos/address-book/index_php.php @@ -0,0 +1,27 @@ +run(); + +?> \ No newline at end of file diff --git a/demos/address-book/protected/application.php b/demos/address-book/protected/application.php new file mode 100644 index 00000000..1a95e46e --- /dev/null +++ b/demos/address-book/protected/application.php @@ -0,0 +1,57 @@ + array( + 'id' => 'address-book', + 'mode' => 'Debug', + ), + 'paths' => array( + 'using'=>array( + 'System.Data.*', + 'System.Security.*', + 'System.Data.ActiveRecord.*', + 'System.Web.Services.*', + ), + 'aliases'=>array( + 'myapp' => '/Users/carlgmathisen/Sites/prado3/branch3.2/demos/personal/protected', + ) + ), + 'modules' => array( + 'sqlite-db' => array( + 'class' => 'TActiveRecordConfig', + 'database' => array( + 'ConnectionString' => 'sqlite:./protected/pages/sqlite.db', + ), + ), + 'users' => array( + 'class' => 'TUserManager', + 'properties' => array( + 'PasswordMode' => 'Clear', + ), + 'users' => array( + array( + 'name'=>'demo', + 'password'=>'demo' + ), + ), + ), + 'auth' => array( + 'class' => 'System.Security.TAuthManager', + 'properties' => array( + 'userManager' => 'users', + 'loginPage' => 'Login', + ), + ), + ), + 'services' => array( + 'soap' => array( + 'class' => 'TSoapService', + 'address-book' => array( + 'properties' => array( + 'provider' => 'Application.pages.AddressProvider', + 'ClassMaps' => 'AddressRecord', + ), + ), + ), + ), +); \ No newline at end of file diff --git a/demos/personal/index_php.php b/demos/personal/index_php.php new file mode 100644 index 00000000..cf57d82d --- /dev/null +++ b/demos/personal/index_php.php @@ -0,0 +1,13 @@ +run(); \ No newline at end of file diff --git a/demos/personal/protected/Pages/Layout.tpl b/demos/personal/protected/Pages/Layout.tpl index 3ffb5306..d650a689 100644 --- a/demos/personal/protected/Pages/Layout.tpl +++ b/demos/personal/protected/Pages/Layout.tpl @@ -8,7 +8,7 @@

Your Name Here

-

My Personal Site

+

<%$siteName%>