From e2cb0b52aaa02a3f3f41d0df377d189529713738 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 10 May 2007 23:00:04 +0000 Subject: Update blog tutorial --- .../protected/pages/GettingStarted/CommandLine.page | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/quickstart/protected/pages') diff --git a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page index 81981abc..ca51d54f 100644 --- a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page +++ b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page @@ -18,7 +18,7 @@ If you type php path/to/framework/prado-cli.php, you should see the following information. Alternatively, if you are not on Windows, you may try to change the prado-cli.php into an executable and execute it as a script

- + Command line tools for Prado 3.0.5. usage: php prado-cli.php action [optional] example: php prado-cli.php -c mysite @@ -57,11 +57,11 @@ Prado project. For example, let us load the blog demo project. Assume that your command line is in the prado distribution directory and you type.

- + $: php framework/prado-cli.php shell demos/blog The output should be - + Command line tools for Prado 3.0.5. ** Loaded Prado application in directory "demos\blog\protected". PHP-Shell - Version 0.3.1 @@ -75,18 +75,18 @@ Then we will get an instance of the Prado blog application, and from that instance we want an instance of the 'data' module. Notice that a semicolon at the end of the line suppresses the output. - + >> $app = Prado::getApplication(); >> $db = $app->getModule('data'); Lastly, we want to use the data module to query for a post with ID=1. Notice that we leave out the semicolon to show the results. - + >> $db->queryPostByID(1) There should not be any errors and you should see the following. - + PostRecord#1 ( [ID] => 1 -- cgit v1.2.3