Normally it would be in such a structure:
../application/modules/somemodule/views/scripts/index/index.phtml
How I move it to:
../application/templates/somemodule/template1/views/......
../application/templates/somemodule/templateTWOOMG/.......
??
You need to play with:
$viewRenderer::setViewBasePathSpec();
For example in
frontController
plugin, (or easier, but not so flexible, inBootstrap.php
):Take a look on getters and setters in
frontController
,view
,layout
andviewRenderer
classes. There are plenty of methods which allow to customize default directory structure.I did it with a plugin, and set a variable in my config to specify the name of the theme.