| @@ -94,9 +94,9 @@ | ||
| 94 | 94 | public function __construct($defaultController = 'blocks') { |
| 95 | 95 | // Initialize Hookable. |
| 96 | 96 | parent::__construct(); |
| 97 | 97 | // Initialize! |
| 98 | - $this->controllerName = $this->ongetdefaultcontrollername($_REQUEST['controller'] ? $_REQUEST['controller'] : $defaultController); | |
| 98 | + $this->controllerName = $this->ongetdefaultcontrollername(isset($_REQUEST['controller']) ? $_REQUEST['controller'] : $defaultController); | |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * put your comment there... |
| @@ -176,15 +176,15 @@ | ||
| 176 | 176 | * put your comment there... |
| 177 | 177 | * |
| 178 | 178 | * @param mixed $request |
| 179 | 179 | */ |
| 180 | - public function route($request = null) { | |
| 180 | + public function route($loadView = null, $request = null) { | |
| 181 | 181 | // Only loading one controller is allowed. |
| 182 | 182 | if (!$this->controller) { |
| 183 | 183 | // Import view class. |
| 184 | 184 | require_once CJTOOLBOX_MVC_FRAMEWOK . '/view.inc.php'; |
| 185 | 185 | // Instantiate controller! |
| 186 | - $this->controller = $this->onsetcontroller(CJTController::getInstance($this->controllerName, null, $request)); | |
| 186 | + $this->controller = $this->onsetcontroller(CJTController::getInstance($this->controllerName, $loadView, $request)); | |
| 187 | 187 | } |
| 188 | 188 | return $this->controller; |
| 189 | 189 | } |
| 190 | 190 | |