PEAK XOOPS - TinyD and Template in englishin japanese

TinyD and Template

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/5 23:06
clownxx  二等兵   Posts: 4
Hey, I use the contentmodul TinyD. I can create en easy PHP file en this one is displayed. Even global variables are accessable in my Content. Now my Question:
Is it possible to create Templatebased content to display in the contentmodul, e.g. when I got my Content.php in Tiny id like to do somethink like:

$xoopsTpl->takeThisTemplate("myTemplate");
and fill it with
$xoopsTpl->assign('var', 'test'); //this works, the variable is submitted, but not the Template(?)

and finaly
$xoopsTpl->display;

then Tinyd writes the content to a variable named {$content}. This should be the conten out of my Template.
Can anybody help please?

thanks a lot
Votes:1 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2006/10/6 6:09
GIJOE  先任軍曹   Posts: 4110
I cannot understand what you mean.
PHP contents?

Thus, you have to create new object of XoopsTpl.


$tpl =& new XoopsTpl() ;
$tpl->assign(...,...);
$tpl->display( "(name of template)" ) ;
Votes:6 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!