Пример #1
0
 public static function goToControllerAction($controller, $action)
 {
     if ($action == DEFAULTACTION && $controller == DEFAULTCONTROLLER) {
         RedirectHelper::go("");
     } else {
         if ($action == DEFAULTACTION) {
             RedirectHelper::go($controller);
         } else {
             RedirectHelper::go($controller . '/' . $action . '/' . RedirectHelper::getUrlParameters());
         }
     }
 }