1
EyeKeeper
Module Template Admin
  • 2008/2/6 12:39

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello!

I've been digging around the forums for a while now trying to find out on how to bring up the admin of modules into templates instead of having html tags hardcoded and shown through tonnes of "echos"...

Does anyone know how to use templates in the admin or are there any links available?

So far I have from my form the templates defined in xoops_version.php, I have already creted the template such as

<{foreach from=$myForm.elements item=element}>

<{/foreach}>


in the admin file I call the form using

echo $tpl->fetch(XOOPS_ROOT_PATH.'/modules/mymodule/templates/my_template.html');


and the form is associated with the template as follows

$myForm->display();

I tried using

$myFomr->assign($xoopsTpl);

but I get an error stating problems when trying to access the tpl file

Any ideias, directions?
thanks

2
EyeKeeper
Re: Module Template Admin
  • 2008/2/7 23:33

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


*** bump for help ***

Login

Who's Online

252 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 252


more...

Donat-O-Meter

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

Latest GitHub Commits