From d0bdd3144dfc972450d79ddaf6197a30b27eacc0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 6 Apr 2007 12:52:54 +0000 Subject: Fixed some issues in day 2. --- demos/blog-tutorial/protected/pages/Day2/ConnectDB.page | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'demos/blog-tutorial/protected/pages/Day2/ConnectDB.page') diff --git a/demos/blog-tutorial/protected/pages/Day2/ConnectDB.page b/demos/blog-tutorial/protected/pages/Day2/ConnectDB.page index 90db11ef..1d036577 100644 --- a/demos/blog-tutorial/protected/pages/Day2/ConnectDB.page +++ b/demos/blog-tutorial/protected/pages/Day2/ConnectDB.page @@ -28,18 +28,19 @@ We modify our application configuration file protected/application.xml - + +

-The configuration above shows that we are adding to our application a module whose class is specified in the namespace format as System.Data.ActiveRecord.TActiveRecordConfig. Through this module, Active Record will automatically establish a DB connection by using the connection information given in ConnectionString. +The configuration above shows that we are adding two modules to our application. The TDataSourceConfig module is configured with the connection string sqlite:protected/data/blog.db which points to our SQLite database. This connection is used by the TActiveRecordConfig module which is required by Active Record.

-One may set up two or more DB connections in the application configuration. For more details, see the Active Record Documentation. And of course, one may also explicitly create a DB connection in PHP code using the TDbConnection component in PDO. +One may set up two or more DB connections in the application configuration. For more details, see the Active Record documentation. And of course, one may also explicitly create a DB connection in PHP code using the TDbConnection component in PDO. \ No newline at end of file -- cgit v1.2.3