Difference between revisions of "Web Frameworks - Workbook - Week 02"
From mi-linux
Jump to navigationJump to searchLine 4: | Line 4: | ||
Zend is already installed on mi-linux, so you don't have to worry about that... However if you wish to install it at home, please see [http://framework.zend.com/docs/quickstart/create-your-project This page] | Zend is already installed on mi-linux, so you don't have to worry about that... However if you wish to install it at home, please see [http://framework.zend.com/docs/quickstart/create-your-project This page] | ||
+ | |||
+ | == Create Your Project == | ||
+ | |||
+ | Open a terminal. Navigate to a directory where you would like to start a project. Then, use the path to the appropriate script, and execute one of the following: | ||
+ | |||
+ | <pre> | ||
+ | % zf.sh create project quickstart | ||
+ | </pre> | ||
+ | |||
+ | Running this command will create your basic site structure, including your initial controllers and views. The tree looks like the following: | ||
+ | |||
+ | <pre> | ||
+ | quickstart | ||
+ | |-- application | ||
+ | | |-- Bootstrap.php | ||
+ | | |-- configs | ||
+ | | | `-- application.ini | ||
+ | | |-- controllers | ||
+ | | | |-- ErrorController.php | ||
+ | | | `-- IndexController.php | ||
+ | | |-- models | ||
+ | | `-- views | ||
+ | | |-- helpers | ||
+ | | `-- scripts | ||
+ | | |-- error | ||
+ | | | `-- error.phtml | ||
+ | | `-- index | ||
+ | | `-- index.phtml | ||
+ | |-- library | ||
+ | |-- public | ||
+ | | `-- index.php | ||
+ | `-- tests | ||
+ | |-- application | ||
+ | | `-- bootstrap.php | ||
+ | |-- library | ||
+ | | `-- bootstrap.php | ||
+ | `-- phpunit.xml | ||
+ | </pre> |
Revision as of 17:11, 18 January 2010
Main Page >> Web Frameworks >> Workbook >> Workshop - week 01
Install Zend Framework
Zend is already installed on mi-linux, so you don't have to worry about that... However if you wish to install it at home, please see This page
Create Your Project
Open a terminal. Navigate to a directory where you would like to start a project. Then, use the path to the appropriate script, and execute one of the following:
% zf.sh create project quickstart
Running this command will create your basic site structure, including your initial controllers and views. The tree looks like the following:
quickstart |-- application | |-- Bootstrap.php | |-- configs | | `-- application.ini | |-- controllers | | |-- ErrorController.php | | `-- IndexController.php | |-- models | `-- views | |-- helpers | `-- scripts | |-- error | | `-- error.phtml | `-- index | `-- index.phtml |-- library |-- public | `-- index.php `-- tests |-- application | `-- bootstrap.php |-- library | `-- bootstrap.php `-- phpunit.xml