Re: [SMARTY] concat 2 variable
| From: | messju mohr | Date: | Thu, 05 Feb 2004 08:04:54 +0000 |
| Subject: | Re: [SMARTY] concat 2 variable | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10927@lists.php.net to get a copy of this message | ||
On Thu, Feb 05, 2004 at 01:13:58PM +1100, adwinwijaya wrote:
> Hello smarty-general,
>
> I have a directory structure like this
> root:
> - templates
> - header.tpl
> - footer.tpl
> - navigation.tpl
> - templates_c
> --SubFolder
> - configs
> - config.conf
> - templates
> - content.tpl
> - templates_c
>
> my config.conf contain:
> root_directory = "../"
>
> my question is:
> how to concate 2 variable in smarty ?
> I want to put
> {include file=#root_directory#.'templates/header.tpl'}
{include file="
$smarty.config.root_directorytemplates/header.tpl"}
http://smarty.php.net/manual/en/language.syntax.quotes.php
and
http://smarty.php.net/manual/en/language.variables.smarty.config.php
> inside my content.tpl
> I have already tried it ... and it produce error.
>
> thanks
>
>
> --
> Best regards,
> adwinwijaya
> mailto:adwinwijaya@yahoo.com.au