當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Handler::handleEvents方法代碼示例

本文整理匯總了PHP中Handler::handleEvents方法的典型用法代碼示例。如果您正苦於以下問題:PHP Handler::handleEvents方法的具體用法?PHP Handler::handleEvents怎麽用?PHP Handler::handleEvents使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Handler的用法示例。


在下文中一共展示了Handler::handleEvents方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Handler

$config['core']['fs_root'] = '/var/www/core_dev/';
$config['core']['web_root'] = '/issues/core_dev/';
set_include_path(get_include_path() . PATH_SEPARATOR . $config['core']['fs_root'] . 'core/');
require_once 'handler.php';
require_once 'class.Files.php';
require_once 'functions_core.php';
require_once 'functions_wiki.php';
require_once 'functions_news.php';
require_once 'functions_todo.php';
$config['app']['web_root'] = '/issues/';
$config['default_title'] = 'GIR - Issue Tracker';
$config['db']['driver'] = 'mysqli';
$config['db']['username'] = 'root';
$config['db']['password'] = '';
$config['db']['database'] = 'dbIssues';
$config['user']['driver'] = 'default';
$config['session']['driver'] = 'default';
$config['session']['timeout'] = 60 * 60 * 24 * 7;
//keep logged in for 7 days
$config['session']['name'] = 'issueID';
$config['auth']['driver'] = 'default';
$config['auth']['sha1_key'] = 'c9787cdghgyY#YTsadffJK(7698JJj933fa!s';
$config['auth']['allow_login'] = true;
$config['auth']['allow_registration'] = true;
$h = new Handler($config);
$h->handleEvents();
$config['files']['upload_dir'] = '/home/ml/dev/issues-uploads/';
$config['files']['thumbs_dir'] = $config['files']['upload_dir'] . 'thumbs/';
$files = new Files($config['files']);
$config['wiki']['allow_html'] = true;
$config['wiki']['allow_files'] = true;
開發者ID:martinlindhe,項目名稱:core_dev,代碼行數:31,代碼來源:config.default.php


注:本文中的Handler::handleEvents方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。