i have a little problem with smarty, but don’t know how to fix this.
This is my index.tpl
<body>
{include file='header.tpl'}
{include file='leftmenu.tpl'}
<div id=content>
{include file="news.tpl" }
{include file="rightmenu.tpl"}
</body>
My problem there is this line
<div id=content>
{include file="news.tpl" }
news.php is a file which should display news.tpl , because it is my newssystem.
In news.php, i query the mysql database and give the result to news.tpl.
But when i write the above line, the news.tpl don’t know where the result comes from.
Hope someone could help.
You do something like this,
Smarty_Datawill help youSent your
newsarray toassignfunction.