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

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

Who's Online

461 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 461


more...

Donat-O-Meter

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

Latest GitHub Commits