Jump to content

No template found for Mymodule


abdess

Recommended Posts

Hello!

 

I have the same problem. I'm still a beginner. I use Prestashop 1.7.0.4

 

Here is my code in .php the file: controllers/front/display.php :

 

 

<?php

class abdesmodulodisplayModuleFrontController extends ModuleFrontController

{

    public function initContent()

    {

        parent::initContent();

        $this->setTemplate('display.tpl');

    }

}

 

 

And in the .tpl file : views/templates/front/display.tpl :

 

<h1>Welcome  ABDES MODULE</h1>

 

but display controller get this message:

Jsunz9d.png

I need help please! Thanks

post-1370256-0-20611100-1486899939_thumb.png

Link to comment
Share on other sites

  • 3 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...