Documentation – Routing – Custom Router

Pavel Janda
Member | 977
+
+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/…tion/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

CZechBoY
Member | 3608
+
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

Pavel Janda
Member | 977
+
0
-

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