I have a running website on SilverStripe 4.6 with all my code in the app/src folder. I thought it would be cleaner to move my code into seperate newly created modules. I’ve been successful mostly except with the templating part.
Suppose I have vendor/myvendor/blogmodule/src/BlogPageController.php
with namespace MyVendor\BlogModule\
Where should I put my BlogPage.ss
template? I want it to be rendered with Page.ss from my theme folder and Layout/BlogPage.ss as the $Layout.
I’ve tried many locations like
vendor/myvendor/blogmodule/templates/layout/BlogPage.ss
themes/mytheme/templates/MyVendor/BlogModule/Layout/
… and more