Documentation – Routing – Custom Router

23 days ago

Pavel Janda
Backer | 877
+
+1
-

Hey,

I would like to ask you whether there is any possibility to complete the documentation. In the Custom Router section (https://doc.nette.org/en/3.0/routing#…) there is no example with what should the return data contain in the ::match() method. Also, in the ::constructUrl() method, there is no example what does the $params argument contain. Could you please complete that?

Thanks!

Pavel

23 days ago

CZechBoY
Member | 3431
+
0
-

According to SimpleRouter, method match returns parsed query string; constructUrl’s $parameters should be dictionary of parameters for called action.

https://github.com/…leRouter.php

23 days ago

Pavel Janda
Backer | 877
+
0
-

@CZechBoY I know. And it also should be in the docs..