Working with Zend Framework

Zend Framework users who deploy Zend Server will benefit from a pre-configured stack that includes all the system components for developing Web applications with PHP.

Zend Server comes bundled with the latest versions of Zend Framework 1 and Zend Framework 2. The Zend Server Notification Center will notify you if any new versions of these libraries become available, allowing you to quickly update them if necessary.

What is Zend Framework?

How do I update a library?

Consuming Zend Framework Libraries

This procedure will describe how to use the Zend Framework libraries installed in Zend Server.

 

 

Instructions on how to complete a procedure

To use Zend Framework in your code:

  1. In the UI, go to the Applications | Libraries page.
  2. From the Libraries list, select the Zend Framework library you wish to use in your application.
    The Expanded view is displayed.
  3. In the Expanded view, copy the API call specified in the 'Library Path' field. For example:

zend_deployment_library_path('Zend Framework 2', '2.0');

  1. In your application, locate the entry-point file that specifies the include path of the library used by your application (e.g., 'init_autoloader.php'), and insert the API call. For example:

$zf2Path = zend_deployment_library_path('Zend Framework 2', '2.0');

Tip:

To instruct the application to automatically use the latest available version of this library, and not a specific version, omit the version number (e.g., 'Zend Framework 2' instead of 'Zend Framework 2', '2.0').

If you do not enter the specific library version number in the API call, your application will use the default library version. For more information, see Setting a Default Library Version.