Jump to content
Xavierleo

Affichage tpl depuis Module front Controller

Recommended Posts

Salut
j'ai fait un simple module avec un controlleur front qui fait appel à un fichier tpl .
au niveau front il s'affiche l'erreur suivante :
Call to a member function get() on null

ceci est le code du contolleur et le fichier tpl :
 

<?php

class em_bestsellersBestProductsModuleFrontController extends ModuleFrontController
{
	public function __construct()
	  {
        parent::__construct();
       
	  }
    public function initContent()
    { 	
	    parent::initContent();	
		
	    $this->setTemplate('module:em_bestsellers/views/templates/front/products.tpl');	
            
    }
}
	
{extends file='page.tpl'}

{block name='allproducts'}

<p>hello heree </p>

{/block}

un idée svp?

Share this post


Link to post
Share on other sites

English Forum section, please only question in English language. If you want to communicate in French, please use French Forum section. Thank you.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More