Zend Framework Installation
: https://framework.zend.com/downloads/archives
Modify the php.ini file to add the library directory to the Include_path path
* If you do not have permission to modify the php.ini file, you can create a. htaccess file, add Php_value include_path to the file.; Library path, place the file in the server's document root directory
Configuration
① adding the Php.exe directory to the System environment variable
Add the Bin directory under the Zend Framework directory to the System environment variable (for ease of use by the ZF command)
*zend framework2.4 version does not have Zf.bak and other command tools
② Configuring ZF Tools
ZF Create Config
ZF Enable Config.manifest Zend_tool_project_provider_manifest
③ Creating a Project
ZF Create project name
This command creates a project skeleton
Application Project Application Directory
Application/controllers Controller Directory
Application/models Model Catalog
Application/views Template Catalog
Application/configs Configuration Directory
application/
Public project portal
Library Directory
Zend Framework Access URL
Example: Localhost/index/index
localhost: Access to the public/index of the project directory
Index is accessing the controller name
Index position is the index method of the index controller
Zend Framework creates controllers, actions, and views
Create a Controller
In Apllication/controller, the file name must be "controller name +controller", for example contentcontroller.php
Zend Framework Learning Note (under Windows)