I’d like to name my default layout file something other than layout.phtml, since it doesn’t really describe what type of layout it is. How can I do this? Thanks!
I’d like to name my default layout file something other than layout.phtml, since it
Share
From your Bootstrap.php file, you could do something like this:
If you want to use a different layout for a different module, you need to register a plugin in the Bootstrap and have the plugin contain the following code:
From within your application.ini, you can do this to set the layout script:
This will not work on a per layout basis, however. If you need to change the layout based on the module, you will have to use a plugin, but you can use the setting in application.ini to set the default layout name.