|
@@ -66,7 +66,7 @@ class Application{
|
|
|
return $controllerObject;
|
|
|
}
|
|
|
|
|
|
- protected function LoadPage($page,$action,$params){
|
|
|
+ private function ActualLoadPage($page,$action,$params){
|
|
|
$this->_controller=$this->LoadController($page);
|
|
|
if (!method_exists($this->_controller, $action))
|
|
|
$action="Index";
|
|
@@ -85,6 +85,10 @@ class Application{
|
|
|
$this->_view=call_user_func_array(array($this->_controller,$action), $callArgs);
|
|
|
}
|
|
|
|
|
|
+ protected function LoadPage($page,$action,$params){
|
|
|
+ $this->ActualLoadPage($page, $action ,$params);
|
|
|
+ }
|
|
|
+
|
|
|
private function PopulateParamsFromGetPost() {
|
|
|
$params=array();
|
|
|
foreach ($_GET as $key=>$_)
|
|
@@ -130,7 +134,8 @@ class Application{
|
|
|
$this->LoadPage($page, $action, $params);
|
|
|
} catch (Exception $e){
|
|
|
Utils::var_dump_email($e);
|
|
|
- $this->LoadPage("E500", "Index", array());
|
|
|
+ $this->ActualLoadPage("E500", "Index", array());
|
|
|
+ http_response_code(500);
|
|
|
}
|
|
|
}
|
|
|
|