I want my module controller to show content inside of store layout (eg show header, then my controller data, then footer, so it will look like being part of the store, not on a blank page). I created a block with template to achieve this, but I didn't made it working.
I wanted to be sure I did everything right, so I used mage2gen to make a test module
and I have the same results. When I open the controller url, store header and footer is shown, but the inner part is blank - everything inside template file is ignored. First I thought it's just not displayed, so I waited for the page to finish loading and then searched the for some text from the template in page source (developer tools -> elements), but it's not here. Like if the template was blank.
I runned magento
cache:flush multiple times, but no changes. The
var/log has nothing related in here (only debug.log is printing cache_invalidate as always)
What is wrong here? Did I messed up my store, or is mage2gen not working properly?