Zend Framework Learning Note (under Windows)

Source: Internet
Author: User
Tags zend zend framework

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.