本文整理匯總了PHP中CApp::notify方法的典型用法代碼示例。如果您正苦於以下問題:PHP CApp::notify方法的具體用法?PHP CApp::notify怎麽用?PHP CApp::notify使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CApp
的用法示例。
在下文中一共展示了CApp::notify方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: glob
if ($dPconfig["offline_non_admin"] && CAppUI::$user->_id != 0 && !CAppUI::$user->isAdmin()) {
CApp::goOffline("maintenance");
}
}
CMbPerformance::mark("user");
// Load DB-stored configuration schema
$configurations = glob(__DIR__ . "/modules/*/configuration.php");
foreach ($configurations as $_configuration) {
include $_configuration;
}
CMbPerformance::mark("config");
// Init output filter
CHTMLResourceLoader::initOutput(CValue::get("_aio"));
CApp::notify("BeforeMain");
// Check if the mobile feature is available and if the user agent is a mobile
$enable_mobile_ui = CAppUI::pref("MobileUI") || !CAppUI::$instance->user_id;
if (is_file(__DIR__ . "/mobile/main.php") && !empty($_SESSION["browser"]["mobile"]) && $enable_mobile_ui) {
CAppUI::$mobile = true;
include __DIR__ . "/mobile/main.php";
} else {
include __DIR__ . "/includes/main.php";
}
CView::disableSlave();
CApp::notify("AfterMain");
// Send timing data in HTTP header
CMbPerformance::end();
CMbPerformance::writeHeader();
// Output HTML
$aio_options = array("ignore_scripts" => CValue::get("_aio_ignore_scripts"));
CHTMLResourceLoader::output($aio_options);
CApp::rip();