Posted By

shahways on 11/09/10


cakephp Framework zend

Versions (?)

Deploy Zend Framework within CakePHP

 / Published in: PHP

Drop the Zend Framework Library folder into your Vendors folder

  1. // Create a script in your Vendors folder called zf_include_path.php with the following statement:
  2. ini_set('include_path', ini_get('include_path').dirname(__FILE__));
  4. // In your action, just do the following, replacing Gdata.php with whatever library you wish to load (i.e. Loader.php):
  5. function myAction() {
  6. App::import('Vendor', 'zend_include_path');
  7. App::import('Vendor', 'Zend_Gdata', true, false, 'Zend/Gdata.php');
  8. }

Report this snippet  

You need to login to post a comment.