【实例简介】
实现效果:

【核心代码】
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../../.metadata/.plugins/org.zend.php.framework.resource/resources/ZendFramework-1/library'),
get_include_path(),
)));
require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('../application/controllers');
|