Hi, about the zf3 component router,
$response = $e->getResponse();
$router = $e->getRouter();
$url = $router->assemble(array('controller'=>'orders','action'=>'outmeasure'),array('name'=>'application'));
$response->getHeaders()->addHeaderLine('Location', $url);
$response->setStatusCode(302);
$e->stopPropagation(true);
return $response;
I am not sure about which kind of params I can pass to the methond assemble. I read the official document as https://docs.zendframework.com/zend-router/routing/, it just said like:
interface RouteInterface
{
public static function factory(array $options = []);
public function match(Request $request);
public function assemble(array $params = [], array $options = []);
}
It is hard for me to figure out what params and options I should pass to.
Any one who knew it clear pls tell me, thank you!