Can custom routes be added per module
- kevin.waterson@gmail.com
- Member | 81
I have nette set up for some modules.
Each module in its own directory, with presenters and templates.
Eg: Blog
Blog/presenters/DefaultPresenter
Blog/templates/default.latte
Can I add custom routes in separate file in the Blog directory?
Eg: Blog/Routes/my_routes.php
or something?
- kevin.waterson@gmail.com
- Member | 81
CZechBoY wrote:
You can include another router factory in main router factory.
extend the router factory?
So, something like:
And call this function from the config
router: App\Router\RouterFactory::createRouter
App\Router\RouterFactory::createBlogRouter