1
Chris03
Smarty help...
  • 2005/11/15 6:47

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Can some please explain how to use XOOPS + smarty

le="color: #000000"><?php include("../../mainfile.php"); $xoopsOption['template_main'] = 'index_main.html'; include("../../header.php"); $xoopsTpl->assign('test','just wanna see if it works!'); $xoopsTpl->display();


in index_main.html i do
le="color: #000000"><?php <{$test}>


Displays nothing...im assuming a missed alot of something.. The template file in in xoops_version.php and was compliled...what did i miss..!


Thanks!
KickassAMD

2
Chris03
Re: Smarty help...
  • 2005/11/15 7:34

  • Chris03

  • Quite a regular

  • Posts: 372

  • Since: 2004/2/22


Ok this works...
le="color: #000000"><?php include("../../mainfile.php"); include(XOOPS_ROOT_PATH."/header.php"); $xoopsTpl->xoops_setCaching(0); $xoopsTpl->assign('title','Home Page'); $xoopsTpl->display(XOOPS_ROOT_PATH."/modules/l2cpanel/templatesindex_main.htm") ; include(XOOPS_ROOT_PATH."/footer.php");


But surely this isnt the correct way!?
KickassAMD

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!