Jump to content

my smarty code does not working at my module


Serge_Matias

Recommended Posts

Please i need help,

i have write smarty code at module's php file as :

 

 

$smarty = new Smarty;

$smarty->assign('title','Hello World');

 

 

and write HTML code at TPL file as :

 

<li>{$title}</li>

 

and it does not working, can any one help me about this problem.

Link to comment
Share on other sites

Please i need help,

i have write smarty code at module's php file as :

 

 

$smarty = new Smarty;

$smarty->assign('title','Hello World');

 

 

and write HTML code at TPL file as :

 

<li>{$title}</li>

 

and it does not working, can any one help me about this problem.

 

Hello,

 

you don't need $smarty = new Smarty; instead use

global $smarty;

  • Like 1
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...