public static function disable() { self::$_enabled = false; }
<?php // Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define path to library directory defined('LIBRARY_PATH') || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'); // Set the include path set_include_path(implode(PATH_SEPARATOR, array(get_include_path(), LIBRARY_PATH))); require_once LIBRARY_PATH . "/Issues/Profiler.php"; Issues_Profiler::enable(); Issues_Profiler::start('all'); Issues_Profiler::start('bootstrap'); try { require_once 'Zend/Application.php'; $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/config.php'); $application->bootstrap(); } catch (Zend_Config_Exception $e) { die('config fail'); } Issues_Profiler::stop('bootstrap'); $front = Zend_Controller_Front::getInstance(); $front->returnResponse(true); Issues_Profiler::start('app'); $application->run(); Issues_Profiler::stop('app'); Issues_Profiler::stop('all'); echo $front->getResponse();