Change module template directory
- gmgiadinh176
- Member | 2
Currently my module templates are stored in app/BlogModule/templates/Blog/
I would like this to be app/BlogModule/templates
How do I set this path?
Thanks,
- Rick Strafy
- Nette Blogger | 55
Hi, you can do it like this: https://github.com/…resenter.php#L18
With setLayout()
and getTemplate()->setFile()
in
some BasePresenter::beforeRender()
.
There is also another way – https://forum.nette.org/…le-templates,
but to me, it seems more complicated, so I use first method.