Skip to content

Instantly share code, notes, and snippets.

@dypsilon
Created May 31, 2011 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dypsilon/1001444 to your computer and use it in GitHub Desktop.
Save dypsilon/1001444 to your computer and use it in GitHub Desktop.
Installing Zend Framework strategically (goo.gl/LQ5qO) / index.php
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Configure the include path.
$zendFrameworkPath = realpath(APPLICATION_PATH . '/../../zf/1.11.6');
if ($zendFrameworkPath === false) {
throw new Exception('No Zend Framework found.');
}
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
$zendFrameworkPath,
get_include_path(),
)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment