Jump to content

Smarty & module


elisa_34

Recommended Posts

Hi to all
I'm starting to work on smarty and prestashop, i think i nearly understand the module basic architecture.

But, when try to past a function in the lefColumn, with something like this

public function hookleftColumn($params) {
       global $smarty; 
       $smarty->assign (blockfirstmodule::toto());
       $smarty->assign('test', 'my test');
       return $this->display(__FILE__, 'blockfirstmodule.tpl');

}


Well, "my test" is in the right place,
but the output of "toto" take place in two places ! on outside the body and another one in the right column !!!
i just don't get it, please, someone help me :)

merci

44381_P1sRalquxm7JgnfIgRD1_t

44382_t6PGBVkfls6vMMknDLSw_t

Link to comment
Share on other sites

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...