1
london
Using Smarty Variables in Modules
  • 2005/6/11 16:13

  • london

  • Just popping in

  • Posts: 23

  • Since: 2005/6/8 2


Dear All,

How can we make certain Smarty variables available to templates? For example, in the recent news template the <{$hometext}> Smarty variable is not available, but hometext is a database field in the stories table in the database.

Thanks,
Jason

2
hervet
Re: Using Smarty Variables in Modules
  • 2005/6/12 12:32

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

In the code, use something like this :
Quote:

$xoopsTpl->assign('author_id',$uid);

You will find everything you want to know about smarty here :
http://smarty.php.net/

Bye,
Hervé

Login

Who's Online

387 user(s) are online (325 user(s) are browsing Support Forums)


Members: 0


Guests: 387


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits