diff options
author | xue <> | 2007-04-06 12:52:54 +0000 |
---|---|---|
committer | xue <> | 2007-04-06 12:52:54 +0000 |
commit | d0bdd3144dfc972450d79ddaf6197a30b27eacc0 (patch) | |
tree | cb89b3a0be407d38300821d4ba3edd6ee73bb44d /demos/blog-tutorial/samples/day2 | |
parent | 34772099513df0734d3149e7b6d2d011f1f5e5e7 (diff) |
Fixed some issues in day 2.
Diffstat (limited to 'demos/blog-tutorial/samples/day2')
3 files changed, 5 insertions, 7 deletions
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/application.xml b/demos/blog-tutorial/samples/day2/blog/protected/application.xml index 69cdbf9f..503b625a 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/application.xml +++ b/demos/blog-tutorial/samples/day2/blog/protected/application.xml @@ -1,12 +1,9 @@ <?xml version="1.0" encoding="utf-8"?>
<application id="blog" mode="Debug">
- <!-- alias definitions and namespace usings
<paths>
- <alias id="myalias" path="./lib" />
- <using namespace="Application.common.*" />
+ <using namespace="Application.database.*" />
</paths>
- -->
<!-- configurations for modules -->
<modules>
@@ -23,9 +20,10 @@ <route class="TBrowserLogRoute" Categories="System" />
</module>
-->
- <module id="data" class="System.Data.ActiveRecord.TActiveRecordConfig">
+ <module id="db" class="System.Data.TDataSourceConfig">
<database ConnectionString="sqlite:protected/data/blog.db" />
</module>
+ <module class="System.Data.ActiveRecord.TActiveRecordConfig" ConnectionID="db" />
</modules>
<!-- configuration for available services -->
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php b/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php index a9fb5db3..31451b30 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/database/PostRecord.php @@ -1,6 +1,6 @@ <?php
/**
- * Auto generated by prado-cli.php on 2007-04-05 10:25:19.
+ * Auto generated by prado-cli.php on 2007-04-06 08:42:12.
*/
class PostRecord extends TActiveRecord
{
diff --git a/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php b/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php index 5f2be169..2f657cd8 100644 --- a/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php +++ b/demos/blog-tutorial/samples/day2/blog/protected/database/UserRecord.php @@ -1,6 +1,6 @@ <?php
/**
- * Auto generated by prado-cli.php on 2007-04-05 10:23:57.
+ * Auto generated by prado-cli.php on 2007-04-06 08:42:08.
*/
class UserRecord extends TActiveRecord
{
|