Улучшил обработку ошибок
This commit is contained in:
parent
b84e13f769
commit
3ebc007b8d
3 changed files with 11 additions and 5 deletions
|
|
@ -332,6 +332,11 @@ class Controller
|
|||
$request->session()->clean('page');
|
||||
return $result;
|
||||
}
|
||||
|
||||
function redirect($action) {
|
||||
header('location: ' . $this->fUrl($action));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
class Controller_Action extends Controller {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue