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 ();