Help: can anybody help me change the module template directory

8 days 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.

8 days ago

Mabar
Member | 98
+
0
-

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()