Welcome to Discussion Forum, where you can ask questions and receive answers from other members of the community.

Error in including tpl in front controller module

0 like 0 dislike
hi,
 
I am new baby in creating module and I am working on prestashop 1.5.5.0. For testing, I am creating module "mymodule"
 
here, I have create display.php in module/mymodule/controllers/front/display.php
<?php
class mymoduledisplayModuleFrontController extends ModuleFrontController
{
  public function initContent()
  {
    parent::initContent();
    $this->setTemplate(dirname(__FILE__).'display.tpl');
  }
}
?>
I have put display.tpl file in module/mymodule/controllers/front/ folder. but it does not work any more. I do not think that I have put  tpl file in correct location.
 
Thanks for co-operating
asked Jun 1, 2017 in Prestashop by harsh (8,710 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

1 like 0 dislike
1 answer 872 views
872 views asked Jun 9, 2017 in Prestashop by harsh (8,710 points)
0 like 0 dislike
0 answers 32 views
0 like 0 dislike
0 answers 460 views
460 views asked Sep 8, 2017 in Prestashop by manuel
0 like 0 dislike
1 answer 2,826 views
0 like 0 dislike
1 answer 185 views
185 views asked Feb 17, 2017 in Opencart by harsh (8,710 points)
...