This page describes how to use PHP libraries deployed on Zend Server. Since libraries can be installed on your server independently of your application, applications can be much more agile and lighter. All you have to do is insert an API call, supplied by Zend Server, to the include path of the library you wish to consume.
Note:
This procedure describes how to use libraries already installed on Zend Server. To use another library, package and deploy it to Zend Server before completing this procedure.
|
|
|
To use a library:
zend_deployment_library_path('Zend Framework 2', '2.0');
$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'). |
To better understand the procedure described on this page, watch this video:
|
|
|
Related Links: |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.