Changeset 1479
- Timestamp:
- 10/24/2006 06:11:08 AM (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/demos/quickstart/protected/pages/GettingStarted/CommandLine.page
r1447 r1479 2 2 <h1 id="501">Command Line Tool</h1> 3 3 <p>The optional <tt>prado-cli.php</tt> PHP script file in the <tt>framework</tt> 4 directory provides command line tools to perform various te ndious taks in Prado.4 directory provides command line tools to perform various tedious takes in Prado. 5 5 The <tt>prado-cli.php</tt> can be used to create Prado project skeletons, create 6 6 initial test fixtures, and access to an interactive PHP shell. … … 45 45 <li>Change to the directory where you want to create the project skeleton.</li> 46 46 <li>Type, <tt>php ../prado/framework/prado-cli.php -c helloworld</tt>, where 47 <tt>hellow world</tt> is the directory name that you want to create the project skeleton files.</li>47 <tt>helloworld</tt> is the directory name that you want to create the project skeleton files.</li> 48 48 <li>Type, <tt>php ../prado/framework/prado-cli.php <b>-t</b> helloworld</tt> to create 49 49 the test fixtures for the <tt>helloworld</tt> project.</li> … … 52 52 <h2 id="505">Interactive Shell</h2> 53 53 <p> 54 The interactive shell allows you to evaluate PHP statements from t e command line.54 The interactive shell allows you to evaluate PHP statements from the command line. 55 55 The <tt>prado-cli.php</tt> script can be used to start the shell and load an existing 56 56 Prado project. For example, let us load the blog demo project. Assume that your … … 64 64 <com:TTextHighlighter Language="cli" CssClass="source"> 65 65 Command line tools for Prado 3.0.5. 66 ** Loaded Prado app plication in directory "demos\blog\protected".66 ** Loaded Prado application in directory "demos\blog\protected". 67 67 PHP-Shell - Version 0.3.1 68 68 (c) 2006, Jan Kneschke <jan@kneschke.de> … … 74 74 Then we will get an instance of the Prado blog application, and from 75 75 that instance we want an instance of the <tt>'data'</tt> module. Notice that 76 a <b>semicolon</b> at the end of the line <b>sup resses the output</b>.76 a <b>semicolon</b> at the end of the line <b>suppresses the output</b>. 77 77 78 78 <com:TTextHighlighter Language="cli" CssClass="source"> … … 98 98 [Content] => 'Congratulations! You have successfully installed Prado Blog -- 99 99 a PRADO-driven weblog system. A default administrator account has been created. 100 Please login with <b>admin/prado</b> and update your password as soon as possib 101 le.' 100 Please login with <b>admin/prado</b> and update your password as soon as possible.' 102 101 [Status] => 0 103 102 [CommentCount] => 0
