本文整理匯總了PHP中fCore::enableExceptionHandling方法的典型用法代碼示例。如果您正苦於以下問題:PHP fCore::enableExceptionHandling方法的具體用法?PHP fCore::enableExceptionHandling怎麽用?PHP fCore::enableExceptionHandling使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類fCore
的用法示例。
在下文中一共展示了fCore::enableExceptionHandling方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
<?php
define('DOC_ROOT', realpath(dirname(__FILE__) . '/../'));
define('URL_ROOT', path_fix(substr(DOC_ROOT, strlen(realpath($_SERVER['DOCUMENT_ROOT'])))) . '/');
define('URL_ROOT_TRIM', ltrim(URL_ROOT, "\\"));
error_reporting(E_STRICT | E_ALL);
fCore::enableErrorHandling('html');
fCore::enableExceptionHandling('html');
fTimestamp::setDefaultTimezone('Asia/Kuala_Lumpur');
fAuthorization::setLoginPage(URL_ROOT . 'authentication.php');
fAuthorization::setAuthLevels(array('super' => 1000, 'admin' => 100, 'user' => 50, 'guest' => 25));
// This prevents cross-site session transfer
fSession::setPath(DOC_ROOT . '/session/');
include DOC_ROOT . '/resources/library/flourish/constructor_functions.php';
/**
* Configuration Settings
*
*/
$config = array("db" => array("dbName" => "umw_mms", "dbHost" => "localhost", "dbUsername" => "useradmin", "password" => "test0"), "title" => "Material Management System", "version" => "v2.00b");
/**
* Automatically includes classes
*
* @throws Exception
*
* @param string $class Name of the class to load
* @return void
*/
function __autoload($class)
{
$flourish_file = DOC_ROOT . '/resources/library/flourish/' . $class . '.php';
if (file_exists($flourish_file)) {