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