From b4403995107c4440b4e19dd5e5e8385e0eac2a5a Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 29 Oct 2006 12:53:33 +0000 Subject: merge from 3.0 branch till 1481. --- .../protected/pages/GettingStarted/CommandLine.page | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page index cf204a40..690de59b 100644 --- a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page +++ b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page @@ -1,7 +1,7 @@

Command Line Tool

The optional prado-cli.php PHP script file in the framework -directory provides command line tools to perform various tendious taks in Prado. +directory provides command line tools to perform various tedious takes in Prado. The prado-cli.php can be used to create Prado project skeletons, create initial test fixtures, and access to an interactive PHP shell.

@@ -44,14 +44,14 @@ are optional parameters.

  1. Change to the directory where you want to create the project skeleton.
  2. Type, php ../prado/framework/prado-cli.php -c helloworld, where - hellowworld is the directory name that you want to create the project skeleton files.
  3. + helloworld is the directory name that you want to create the project skeleton files.
  4. Type, php ../prado/framework/prado-cli.php -t helloworld to create the test fixtures for the helloworld project.

Interactive Shell

-The interactive shell allows you to evaluate PHP statements from te command line. +The interactive shell allows you to evaluate PHP statements from the command line. The prado-cli.php script can be used to start the shell and load an existing 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. @@ -63,7 +63,7 @@ $: php framework/prado-cli.php shell demos/blog The output should be Command line tools for Prado 3.0.5. -** Loaded Prado appplication in directory "demos\blog\protected". +** Loaded Prado application in directory "demos\blog\protected". PHP-Shell - Version 0.3.1 (c) 2006, Jan Kneschke @@ -73,7 +73,7 @@ PHP-Shell - Version 0.3.1 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 supresses the output. +a semicolon at the end of the line suppresses the output. >> $app = Prado::getApplication(); @@ -97,11 +97,10 @@ PostRecord#1 [Title] => 'Welcome to Prado Weblog' [Content] => 'Congratulations! You have successfully installed Prado Blog -- a PRADO-driven weblog system. A default administrator account has been created. - Please login with admin/prado and update your password as soon as possib -le.' + Please login with admin/prado and update your password as soon as possible.' [Status] => 0 [CommentCount] => 0 )

-
\ No newline at end of file + -- cgit v1.2.3