Private/Polyfony/Controller.php
final public function forward(string $controller, $action = null) :void {

		// get the current route as a base
		$route = Router::getCurrentRoute();
		
		// and alter it
		$route->controller	= $controller;
		$route->action		= $action;
		
		// forward to the new route
		Router::forward($route);
		
	}
final public function forward(string $controller, $action = null) :void {

		// get the current route as a base
		$route = Router::getCurrentRoute();
		
		// and alter it
		$route->controller	= $controller;
		$route->action		= $action;
		
		// forward to the new route
		Router::forward($route);
		
	}
final public function forward ( string $ controller , $ action = null ) : void { // get the current route as a base $ route = Router :: getCurrentRoute ( ) ; // and alter it $ route -> controller = $ controller ; $ route -> action = $ action ; // forward to the new route Router :: forward ( $ route ) ; }
forward to another controller in the same bundle
forward to another controller in the same bundle