當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。