本文整理汇总了PHP中Errors::message方法的典型用法代码示例。如果您正苦于以下问题:PHP Errors::message方法的具体用法?PHP Errors::message怎么用?PHP Errors::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Errors
的用法示例。
在下文中一共展示了Errors::message方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: internalStartingContoller
function internalStartingContoller(string $startController = '', array $param = [])
{
$controllerEx = explode(':', $startController);
$controllerPath = !empty($controllerEx[0]) ? $controllerEx[0] : '';
$controllerFunc = !empty($controllerEx[1]) ? $controllerEx[1] : 'main';
$controllerFile = CONTROLLERS_DIR . suffix($controllerPath, '.php');
$controllerClass = divide($controllerPath, '/', -1);
if (is_file($controllerFile)) {
require_once $controllerFile;
if (!is_callable([$controllerClass, $controllerFunc])) {
report('Error', lang('Error', 'callUserFuncArrayError', $controllerFunc), 'SystemCallUserFuncArrayError');
die(Errors::message('Error', 'callUserFuncArrayError', $controllerFunc));
}
return uselib($controllerClass)->{$controllerFunc}(...$param);
} else {
report('Error', lang('Error', 'notIsFileError', $controllerFile), 'SystemNotIsFileError');
die(Errors::message('Error', 'notIsFileError', $controllerFile));
}
}
示例2: internalCreateHtaccessFile
//--------------------------------------------------------------------------------------------------
if (Config::get('Htaccess', 'createFile') === true) {
internalCreateHtaccessFile();
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Robots Dosyası Oluşturma İşlemi
//--------------------------------------------------------------------------------------------------
if (Config::get('Robots', 'createFile') === true) {
internalCreateRobotsFile();
}
//--------------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Composer Autoloader
//--------------------------------------------------------------------------------------------------
$composer = Config::get('Autoloader', 'composer');
if ($composer === true) {
$path = 'vendor/autoload.php';
if (file_exists($path)) {
require_once $path;
} else {
report('Error', lang('Error', 'fileNotFound', $path), 'AutoloadComposer');
die(Errors::message('Error', 'fileNotFound', $path));
}
} elseif (is_file($composer)) {
require_once $composer;
} elseif (!empty($composer)) {
report('Error', lang('Error', 'fileNotFound', $composer), 'AutoloadComposer');
die(Errors::message('Error', 'fileNotFound', $composer));
}
//--------------------------------------------------------------------------------------------------------
示例3: redirect
}
} else {
if ($routeShow404 = Config::get('Services', 'route')['show404']) {
redirect($routeShow404);
} else {
report('Error', lang('Error', 'callUserFuncArrayError', $function), 'SystemCallUserFuncArrayError');
die(Errors::message('Error', 'callUserFuncArrayError', $function));
}
}
}
} else {
if ($routeShow404 = Config::get('Services', 'route')['show404']) {
redirect($routeShow404);
} else {
report('Error', lang('Error', 'notFoundController', CURRENT_CONTROLLER), 'SystemNotFoundControllerError');
die(Errors::message('Error', 'notFoundController', CURRENT_CONTROLLER));
}
}
//--------------------------------------------------------------------------------------------------
// Restore Error Handler
//--------------------------------------------------------------------------------------------------
//
// @mode = 'publication'
//
//--------------------------------------------------------------------------------------------------
if (PROJECT_MODE !== 'publication') {
restore_error_handler();
} else {
//----------------------------------------------------------------------------------------------
// Report Error Last Error
//----------------------------------------------------------------------------------------------