cikcak Posted March 21, 2015 Share Posted March 21, 2015 Hey, im creating a module with additional admin controller: AdminEcoController in this controller im creating template: $this->createTemplate('Ecor.tpl')->fetch(); And got: 'Unable to load template file '/home/web/domains/dom.com/public_html/admin/themes/default/template/ecor.tpl' If I create folder in default/template/eco and put ecor.tpl in this folder its okey. No error. But I want to do it by installing module. I have put it in mymodule/views/templates/admin/eco/ecor.tpl But no results.. How should I solve this problem? Link to comment Share on other sites More sharing options...
jgamio Posted March 21, 2015 Share Posted March 21, 2015 The error talk you where is looking for the file /home/web/domains/dom.com/public_html/admin/themes/default/template/ put your module here mymodule/views/templates/admin/ Link to comment Share on other sites More sharing options...
cikcak Posted March 22, 2015 Author Share Posted March 22, 2015 The error talk you where is looking for the file /home/web/domains/dom.com/public_html/admin/themes/default/template/ put your module here mymodule/views/templates/admin/ Ive put it to mymodule/views/templates/admin and reinstall. Same... Link to comment Share on other sites More sharing options...
jgamio Posted March 22, 2015 Share Posted March 22, 2015 I have`nt never use $this->createTemplate('Ecor.tpl')->fetch(); Why you dont use return $this->display(__FILE__, 'eco.tpl'); to load your template Link to comment Share on other sites More sharing options...
GOKULAN R Posted April 11, 2015 Share Posted April 11, 2015 hi put your tpl file here mymodule/views/templates/admin/mycontrollername/ecor.tpl work it Link to comment Share on other sites More sharing options...
abdess Posted March 4, 2017 Share Posted March 4, 2017 hi put your tpl file here mymodule/views/templates/admin/mycontrollername/ecor.tpl work it Thnx GOKULAN R it works for me 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