faceofjock Posted September 18, 2013 Share Posted September 18, 2013 (edited) Hi,it's my first post in this forum , i hope i will solve my problem. So i'm trying to make my first module ,i added a front controller , but i'm not able to load my template correctly. With parent::initContent() i got 500 error , whitout it , i got only some parts of my website like this : HAHAHA is my display.tpl . This is my code : <?php class charmoduledisplayModuleFrontController extends ModuleFrontController { public function initContent() { parent::initContent(); $this->setTemplate('display.tpl'); } } Edited September 18, 2013 by faceofjock (see edit history) Link to comment Share on other sites More sharing options...
DARLEI FERNANDO ZILL Posted May 22, 2015 Share Posted May 22, 2015 You put the display.tpl within the correct folder? Place inside the front folder as follows YOURMODULE / views / templates / front / display.tpl Otherwise the controller will not pull the tpl and will return this error Had this problem recently and managed to solve so, you may have already solved too, but if it happens to someone with need this information An simple axample: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now