Zend Core and Zend Framework

Zend Framework is a high quality open source framework for developing Web Applications and Web Services with PHP.

The Zend Framework is a collection of common PHP classes which sits above the PHP layer. It packages classes and code, used for common functions such as connecting to databases and creating PDF's, into one easy-to-use application. Using the Zend Framework negates the need for developers to rewrite already existing code, and so significantly speeds up the development process as well as providing the stability ensured by the use of proven code patterns.

While Zend Framework provides an almost ready to use application, it also grants complete flexibility, allowing developers to adapt the application to their own needs.

The expertise of the qualified PHP developers who have worked on the project have ensured a high-quality, stable tool. Zend Framework is covered by unit tests, automatic self-testing mechanisms which ensure that the Framework is constantly tested and monitored.

In addition, Zend Framework has a clean IP. All contributors to the project  have signed a contributor license attesting that their contributions have not been previously copyrighted, thus ensuring peace of mind for developers and allowing free use of all content within the Framework.

For more on Zend Framework, visit the Zend Framework Homepage at http://framework.zend.com.

 

Zend Core for i5/OS 2.6 comes bundled with Zend Framework 1.6.

Note:

Among other functionality, the version shipped with Zend Core for i5/OS 2.6 now includes an improved DB2 adapter that provides enhanced compatibility with the DB2/400 database. See Appendix H - Accessing the DB2/400 Database for more information on using the adapter to ensure compatibility with future Zend Framework releases.

Installation

The Zend Framework comes bundled with Zend Core for i5/OS and will be automatically installed during installation.

Updating

As Zend Framework is an open source project, new updates are constantly being added.
For the latest Zend Framework news and updates, make sure you are added to Zend Framework's mailing list:

http://framework.zend.com/wiki/display/ZFDEV/Contributing+to+Zend+Framework#ContributingtoZendFramework-Subscribetotheappropriatemailinglists

Alternately, visit the Zend Framework portal in order to see the latest Zend Framework news: http://framework.zend.com

Note

During the Zend Core installation, the Zend Framework library will be placed in a folder entitled "ZendFramework".
By default, this can be found in:/usr/local/Zend/ZendFramework

Loading Zend Framework classes

Once Zend Framework's library has been added to your include path, there are two ways to load Zend Framework's classes in your script:

1. Using the Zend Loader:

The Zend Loader utility class checks whether the class already exists within the script. If it does, it will create the relevant file from the class name using Zend Framework's naming convention (See http://framework.zend.com/manual/en/coding-standard.naming-conventions.html for more information on Zend Framework's naming conventions). If the class already exists, this will speed up performance.

Using the Zend Loader also has the added advantage of loading classes outside of Zend Framework.

 

 

Instructions on how to complete a procedure

To use the Zend Loader:

  1. Load the Zend Loader utility class once in your script:

Require_once 'Zend/Loader.php';

  1. From now, load each class using the class name:

Zend_Loader::loadClass('Zend_Class_Name');

For example, in order to load the Zend Http Client:

Zend_Loader:: loadClass('Zend_Http_Client);

 

2. Using require / include calls

Classes can also be called using the conventional require or include calls:

 

 

Instructions on how to complete a procedure

To use 'require class':

Enter a 'require' command for the relevant file into your script:

Require 'File.php';

For example, to require the Zend Http Client Class:

require 'Zend/Http/client.php';

 

In order to see a full list of Zend Framework's components, including more information on the functionality and use of the various components, see http://framework.zend.com/manual

 

 

Related Links

Related Links:
Updating Zend Core

Zend Updater

Appendix H - Accessing the DB2/400 Database