本文整理汇总了PHP中Engine::get_instance方法的典型用法代码示例。如果您正苦于以下问题:PHP Engine::get_instance方法的具体用法?PHP Engine::get_instance怎么用?PHP Engine::get_instance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Engine
的用法示例。
在下文中一共展示了Engine::get_instance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: chdir
**
** IN NO EVENT SHALL JEROME POICHET BE LIABLE FOR ANY SPECIAL, INDIRECT,
** INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
** PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
** OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
** MODIFICATION AND/OR DISTRIBUTION OF THE SOFTWARE, HOWEVER CAUSED AND
** WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT
** LIABILITY OR OTHERWISE, EVEN IF JEROME POICHET HAS BEEN ADVISED OF THE
** POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************
**/
chdir('../..');
$path = './app/';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require_once './dokin/Setup.php';
$aAppConfig = array();
if (file_exists(CONFIG_DIR . 'Dokin.php')) {
include_once CONFIG_DIR . 'Dokin.php';
if ($aAppConfig['TARGET'] && file_exists(CONFIG_DIR . $aAppConfig['TARGET'] . '/Dokin.php')) {
include_once CONFIG_DIR . $aAppConfig['TARGET'] . '/Dokin.php';
}
}
if (!$aAppConfig['TARGET'] || $aAppConfig['TARGET'] == 'production' || $aAppConfig['TARGET'] == 'test') {
ini_set('display_errors', 'Off');
ini_set('log_errors', 'On');
ini_set('report_memleaks', 'On');
ini_set('error_reporting', E_ALL & ~E_NOTICE);
}
ini_set('error_log', getcwd() . '/app/logs/error.log');
$oEngine = Engine::get_instance();
$oEngine->run();