From 36c9e00a20f8e036a7b4abb2ae47405b0ca19387 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 19 Sep 2006 03:34:03 +0000 Subject: Update shebang to use /usr/bin/env --- demos/quickstart/protected/pages/GettingStarted/CommandLine.page | 8 +++++--- framework/prado-cli.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page index 7d439fac..c2050246 100644 --- a/demos/quickstart/protected/pages/GettingStarted/CommandLine.page +++ b/demos/quickstart/protected/pages/GettingStarted/CommandLine.page @@ -72,18 +72,20 @@ 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. +that instance we want an instance of the 'data' module. Notice that +a semicolon at the end of the line supresses 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. +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. +There should not be any errors and you should see the following. PostRecord#1 ( diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 894d8adc..36dc03ac 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -1,4 +1,4 @@ -#!/usr/bin/php +#!/usr/bin/env php