Dunno how to do it.
| From: | Florian Winkler | Date: | Fri, 11 Jul 2003 16:56:53 +0000 |
| Subject: | Dunno how to do it. | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9871@lists.php.net to get a copy of this message | ||
Hi all ,
My first question is wether I am able to include php-source in a template-file like this :
{include file="file.php"}
My second question :
how can I do this with templates ? :
</table>
</td>
</tr>
<tr>
<td bgcolor="#DDDDDD" colspan="3">
<?php
switch($_GET['sek'])
{
case "register":
include('register.class.php');
$instanz = new register;
break;
default:
include('forum.class.php');
$instanz = new forum();
break;
}
?>
</td>
</tr>
</table>
I am in desperation
any help is appreciated
greetz
fLo
_________________________________________________________________
MSN - More Useful Every Day http://www.msn.de