本文整理汇总了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();
}