Beispiel #1
0
 public function launch()
 {
     $strController = sprintf('controller\\%s', $this->strControllerName);
     $objController = new $strController();
     $objController->strControllerName = $this->strControllerName;
     //        $objController->strView = strtolower($this->strControllerName).'/'.$this->strActionName;
     //        $objController->strLayout = 'default';
     $objActionMethod = new \ReflectionMethod($strController, $this->strActionName);
     $arrRequestParams = Request::getParams();
     $objResponse = $objActionMethod->invokeArgs($objController, $arrRequestParams);
     //        echo '<pre>';
     //        print_r($objController);
     //        print_r($objActionMethod);
     //        print_r($objResponse);
     //        exit();
     return $objResponse;
 }
Beispiel #2
0
 public static function currentUrl()
 {
     $objCurrentRoute = \webcitron\Subframe\Router::getCurrentRoute();
     $arrRequestParams = \webcitron\Subframe\Request::getParams();
     $strUrl = \webcitron\Subframe\Url::route($objCurrentRoute->strRouteFullName, $arrRequestParams);
     return $strUrl;
 }