Help: can anybody help me change the module template directory

3 months ago

khanhvd21
Member | 1
+
0
-

Hi,

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?

Tks!

Jr.

3 months ago

Mabar
Member | 163
+
+1
-

In Presenter and Control you can override createTemplate(), in Presenter are also methods formatTemplateFiles() and formatLayoutTemplateFiles() which can be used to create a system solution.
To set template for one specific presenter/control, use $this->template->setFile()