Re: [SMARTY] Module
| From: | messju mohr | Date: | Wed, 11 Jun 2003 09:01:34 +0000 |
| Subject: | Re: [SMARTY] Module | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9697@lists.php.net to get a copy of this message | ||
On Tue, Jun 10, 2003 at 12:08:40AM -0500, Peter Pieczora wrote:
> Hi,
>
> Lets say I've got my whatever.tpl file and I want to display content
>
> $blabla = "life is great";
> I can use $smarty->assign("blabla", $blabla);
>
> great, but what if $blabla would be let's say,
> $blabla = "display.php" and I wanted to use as a module?
> ie.:
> /modules/DB/display.php
> and in my .tpl file
> {module name="display.php"}
{include_php file=$blabla}
see: http://smarty.php.net/manual/en/language.function.include.php.php
greetings
messju
> Peter