Example #1
0
 public static function transfer(Router $router, $where, $data = false)
 {
     $route = new static(false, false, $where);
     $router->setController($route->getController());
     $router->setAction($route->getAction());
     if (is_array($data)) {
         $router->setData($data);
     }
     return $router->handle();
 }