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 /demos | |
parent | 4def5cca8aeb85390c0f82c9445ee228ac40a7f3 (diff) |
Update shebang to use /usr/bin/env
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/GettingStarted/CommandLine.page | 8 |
1 files changed, 5 insertions, 3 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
(
|