Re: [SMARTY] Dunno how to do it.
| From: | Matt Williams | Date: | Fri, 11 Jul 2003 18:00:56 +0000 |
| Subject: | Re: [SMARTY] Dunno how to do it. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9872@lists.php.net to get a copy of this message | ||
Quoting Florian Winkler <grasshalm@hotmail.com>:
> Hi all ,
>
> My first question is wether I am able to include php-source in a
> template-file like this :
> {include file="file.php"}
{include_php file="file.php"}
Is what you're after
> My second question :
>
> how can I do this with templates ? :
> <tr>
> <td bgcolor="#DDDDDD" colspan="3">
> <?php
> switch($_GET['sek'])
> {
> case "register":
> include('register.class.php');
> $instanz = new register;
> break;
<snip>
I guess you could use {php}{/php} tags. Why wouldn't you want the above to be
done by the php file before calling the template?
Matt
-------------------------------------------------