diff options
author | wei <> | 2006-09-19 03:34:03 +0000 |
---|---|---|
committer | wei <> | 2006-09-19 03:34:03 +0000 |
commit | 36c9e00a20f8e036a7b4abb2ae47405b0ca19387 (patch) | |
tree | a1077bb442126692077d583b12853547acb70bea | |
parent | 4def5cca8aeb85390c0f82c9445ee228ac40a7f3 (diff) |
Update shebang to use /usr/bin/env
-rw-r--r-- | demos/quickstart/protected/pages/GettingStarted/CommandLine.page | 8 | ||||
-rwxr-xr-x | 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 >>
</com:TTextHighlighter>
Then we will get an instance of the Prado blog application, and from
-that instance we want an instance of the <tt>'data'</tt> module.
+that instance we want an instance of the <tt>'data'</tt> module. Notice that
+a <b>semicolon</b> at the end of the line <b>supresses the output</b>.
<com:TTextHighlighter Language="cli" CssClass="source">
>> $app = Prado::getApplication();
>> $db = $app->getModule('data');
</com:TTextHighlighter>
-Lastly, we want to use the data module to query for a post with <tt>ID=1</tt>.
+Lastly, we want to use the data module to query for a post with <tt>ID=1</tt>. Notice that
+we <b>leave out the semicolon</b> to show the results.
<com:TTextHighlighter Language="cli" CssClass="source">
>> $db->queryPostByID(1)
</com:TTextHighlighter>
-There should not be any errors and you should see the following.
+There should not be any errors and you should see the following.
<com:TTextHighlighter Language="cli" CssClass="source">
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 <?php /** |