Deploy Zend Framework within CakePHP


/ Published in: PHP
Save to your folder(s)

Drop the Zend Framework Library folder into your Vendors folder


Copy this code and paste it in your HTML
  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__));
  3.  
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.