/** * Execute the target (controller->method or template) of the Route * * @param Route $poRoute */ private function callTarget($poRoute) { $loTarget = $poRoute->getTarget(); if (@isset($loTarget->controller) && @isset($loTarget->method)) { $loController = $this->loadController($loTarget->controller); if (!@isset($loController)) { $this->ioViewController->showPageNotFound(); } call_user_func_array(array($loController, $loTarget->method), $poRoute->getParameters()); } $this->ioViewController->showTemplate(@isset($loTarget->template) ? $loTarget->template : null); }