TinyD and Template
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
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
msg# 1.1
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