The optional prado-cli.php PHP script file in the framework 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.
Requirements
To use the command line tool, you need to use your command prompt, command console or terminal. In addition, PHP must be able to execute PHP scripts from the command line.
We will use the “php.exe”, be sure you have already installed PHP5 and WebServer (Xampp, Apache2Triad, etc). just for information I’m using Xampp webserver v1.6.
If your OS is Windows, for make it simple when using “php.exe”, go to control panel-system-advanced-environment variables and create new “User Variable = Path” with “value=C:\xampp\php”.
Usage
Open your command prompt, and type php path/to/framework/prado-cli.php, you should see the following information. Alternatively, if you are not on Windows, you may try to change the prado-cli.php into an executable and execute it as a script.
Create the prado project skeletons
Now for example, I want to create the prado project named “HelloWorld” on my computer at this path “E:/Prado1.4/HelloWorld”. And I will do the following :
Now I will find my HelloWorld prado project folder at below E:Prado1.4/HelloWorld.
Creating Prado Project Skeletons With Command Line (Windows)
Posted by NanoTutor | Wednesday, February 18, 2009 | Prado | 0 comments »
Subscribe to:
Post Comments (Atom)
0 comments
Post a Comment