Улучшил обработку ошибок

This commit is contained in:
Фёдор Подлеснов 2016-07-28 11:19:47 +03:00
parent b84e13f769
commit 3ebc007b8d
3 changed files with 11 additions and 5 deletions

View file

@ -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 {}