Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 23rd, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Define path to application directory
  4. defined('APPLICATION_PATH')
  5.     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  6.  
  7. // Configure the include path.
  8. $zendFrameworkPath = realpath(APPLICATION_PATH . '/../../zf/1.11.6');
  9.  
  10. if ($zendFrameworkPath === false) {
  11.     throw new Exception('No Zend Framework found.');
  12. }
  13.  
  14. // Ensure library/ is on include_path
  15. set_include_path(implode(PATH_SEPARATOR, array(
  16.     realpath(APPLICATION_PATH . '/../library'),
  17.     $zendFrameworkPath,
  18.     get_include_path(),
  19. )));