Hello,
I have created a module named gestionfournisseur. I need to modify some part of frontend view in this module. For this, I had created two file:
1 - gestionfournisseur/controllers/front/display.php: this file content my controller logic and herit ModuleFrontController
<?php
class gestionfournisseurdisplayModuleFrontController extends ModuleFrontController
{
public function initContent()
{
parent::initContent();
$this->setTemplate('display.tpl');
}
}
2 - gestionfournisseur/views/templates/front/display.tpl: content the view I want to display.
Hello World!!
I generated the link to this page with the following instruction in my module main file:
$this->name = 'gestionfournisseur';
$this->context->link->getModuleLink($this->name,'display')
But, prestashop return me a big exception: No template found for display.tpl
If it can't help you, the content of my variable $this->context->smarty->getTemplateDir() look like this:
array:1 [▼
0 => "/my_hosts/manishop/themes/classic/templates/"
]
Please can't you tell me what is the problems?