当前位置: 首页>>代码示例>>PHP>>正文


PHP Context::go方法代码示例

本文整理汇总了PHP中thebuggenie\core\framework\Context::go方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::go方法的具体用法?PHP Context::go怎么用?PHP Context::go使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thebuggenie\core\framework\Context的用法示例。


在下文中一共展示了Context::go方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: realpath

<?php

// Set the path to The Bug Genie top folder
$path = realpath(getcwd());
defined('DS') || define('DS', DIRECTORY_SEPARATOR);
defined('THEBUGGENIE_SESSION_NAME') || define('THEBUGGENIE_SESSION_NAME', 'THEBUGGENIE');
// Default behaviour: define the path to thebuggenie as one folder up from this
defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DS . '..' . DS) . DS);
// Default behaviour: define the public folder name to "public" (actually autodetect name of current folder)
defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', substr($path, strrpos($path, DS) + 1));
// Root installation: http://issues.thebuggenie.com/wiki/TheBugGenie:HowTo:RootDirectoryInstallation
// ----
// Don't look one directory up to find the path to the bug genie
// defined('THEBUGGENIE_PATH') || define('THEBUGGENIE_PATH', realpath(getcwd() . DS) . DS);
// Don't autodetect the subfolder, but use "" instead, since there is none
// defined('THEBUGGENIE_PUBLIC_FOLDER_NAME') || define('THEBUGGENIE_PUBLIC_FOLDER_NAME', '');
// ----
// Include the "engine" script, which initializes and sets up stuff
defined('THEBUGGENIE_CORE_PATH') || define('THEBUGGENIE_CORE_PATH', THEBUGGENIE_PATH . 'core' . DS);
require THEBUGGENIE_CORE_PATH . 'bootstrap.php';
// Trigger the framework's start function
if (\thebuggenie\core\framework\Context::isInitialized()) {
    \thebuggenie\core\framework\Context::go();
}
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:24,代码来源:index.php


注:本文中的thebuggenie\core\framework\Context::go方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。