本文整理汇总了PHP中AppController::makeUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::makeUrl方法的具体用法?PHP AppController::makeUrl怎么用?PHP AppController::makeUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppController
的用法示例。
在下文中一共展示了AppController::makeUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: backupFilesRemoved
function backupFilesRemoved()
{
global $lll, $noahVersions;
$found = FALSE;
$unnecessaryBackupDirs = array();
foreach ($noahVersions as $v) {
if (file_exists("backup-{$v}")) {
$unnecessaryBackupDirs[] = "backup-{$v}";
}
}
if ($found = count($unnecessaryBackupDirs)) {
$ctrl = new AppController("checkconf/backup_file_remove");
View::assign("backupFileRemove", sprintf($lll["backupFileRemove"], implode(", ", $unnecessaryBackupDirs), $ctrl->makeUrl()));
View::assign("backupFileRemoveExpl", $lll["backupFileRemoveExpl"]);
}
return !$found;
}
示例2: raiseError
/**
* @param int $errNo
* @param string $errMsg
* @param string $file
* @param int $line
* @return void
* @access public
*/
function raiseError($errNo, $errMsg, $file, $line)
{
// Az ismetlodo hibakat nem logoljuk:
if ($this->duplicateFound($errNo, $errMsg, $file, $line)) {
return;
}
static $errorCounter = 0;
if (!($errNo & error_reporting())) {
return;
}
/*
while (ob_get_level()) {
@ob_end_clean();
}
*/
$errType = array(1 => "Php Error", 2 => "Php Warning", 4 => "Parsing Error", 8 => "Php Notice", 16 => "Core Error", 32 => "Core Warning", 64 => "Compile Error", 128 => "Compile Warning", 256 => "Php User Error", 512 => "Php User Warning", 1024 => "Php User Notice");
$info = array();
if ($errNo & E_USER_ERROR && is_array($arr = @unserialize($errMsg))) {
foreach ($arr as $k => $v) {
$info[$k] = $v;
}
}
$trace = array();
if (function_exists('debug_backtrace')) {
$trace = debug_backtrace();
//array_shift($trace);
}
ob_start();
$now = time() + $errorCounter;
include ERROR_HANDLER_ROOT . '/error.tpl';
$errorCounter++;
$s = ob_get_contents();
@ob_end_clean();
error_log($s, 0);
//logba
global $elll;
if ($errNo == E_USER_ERROR) {
$ctrl = new AppController("/");
header("Location: " . $ctrl->makeUrl(TRUE));
}
}