Re: [SMARTY] Embedding variables into parameters for the {include} command
| From: | messju mohr | Date: | Thu, 28 Aug 2003 21:17:20 +0000 |
| Subject: | Re: [SMARTY] Embedding variables into parameters for the {include} command | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10147@lists.php.net to get a copy of this message | ||
On Thu, Aug 28, 2003 at 07:41:33PM +0000, Richard Jones wrote:
> Hi all,
> I've been using smarty for a couple of months now, and i've run into an
> annoying problem.. i'm sure i'm missing an obvious solution..
>
> I include a header atop each template, passing it the title to use in the html
> <title> tags
>
> the title is chosen depending on page content, for example:
>
> {include file="header.tpl" title="User Details :: {$name|htmlentities}"}
{include file="header.tpl" title="User Details :: $name"|htmlentities}
should do
have fun
messju