Zend Framework Introduction and installation configuration

Source: Internet
Author: User
Tags html form web services zend zend framework

Official Download Address: http://www.zend.com/en/community/downloads (

You need to register a member to download, registration is free of charge)
The Zend framework (ZF) is an open source PHP5 development framework that can be

To develop web programs and services. ZF 100% is implemented with object-oriented code. ZF in the

Components are very independent, and each component relies on almost no other component. Such a loosely coupled knot

Allows developers to use components independently. We often call this the "Use-at-will" setting.

Millions

The components in ZF can be used independently, but if they are combined, they form a

A powerful and extensible web development Framework. ZF provides a robust and efficient MVC implementation

, easy-to-use database summaries and tables that implement HTML form parsing, validation, and filtering

So that developers can federate through these easy-to-use, object-oriented interfaces

have these operations. Other components, such as Zend_auth and Zend_acl, pass a common certificate

Book (credential) storage provides user authentication and authorization. There are other implementations of the customer

Library to simplify access to the most popular Web services available. No matter what your program needs,

, you may find comprehensive and rigorously tested components from the Zend Framework

Can be used to reduce development time in a very efficient way.

The main sponsor of the Zend Framework project is Zend Technologies, but many

Other companies have also contributed components or significant functionality. For example, Google, Microsoft, and

Strikeiron as a partner provides a Web service interface and other hope for Zend

Technology used by Framework developers.

The "library/zend/..." in the downloaded ZF directory is the main class library file. This

Some class libraries although zend as much as possible for each function module to maintain the independence, but in a

The references between the files under the module can be searched for files in the "Zend" directory. Like what

, the first reference file in acl.php is "require_once

' zend/acl/resource.php ', so when using the ZF Class library we need to be equipped with

Place the reference directory for Set_include_path ().

Let's look at a simple implementation code:
Directory_separator directory separators for current system
if (!defined (' DS ')) {
Define (' DS ', directory_separator);
}
Define the site root directory
if (!defined (' Web_dir ')) {
Define (' Web_dir ', DirName (__file__). DS);
}
Definition Introduction Class Library Directory
if (!defined (' Library_dir ')) {
Define (' Library_dir ', Str_replace ("Ftest1", "LIBRARY",

Web_dir));
}
Set Reference directory
Set_include_path (Get_include_path

(). Path_separator. LIBRARY_DIR);
Referencing files using the current directory
Require_once ' zend/acl.php ';
Create a taxonomy of referenced files
$acl = new Zend_acl ();

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.