Re: [SMARTY] To include or not to include ?
| From: | Artur Pydo | Date: | Thu, 06 Feb 2003 00:23:27 +0000 |
| Subject: | Re: [SMARTY] To include or not to include ? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7545@lists.php.net to get a copy of this message | ||
Hi Nichlas,
Nichlas Löfdahl wrote:
Actually you don't have to specfiy each variable when you include a template, any variables available in the current template are also available within the included template, so your first solution is good.Thanks for your quick answer.:) You are right ! I must have been confused by the article about "passing variable title to header template" in the manual (http://smarty.php.net/manual/en/tips.passing.vars.php). I thought this was the only way to pass a variable to an included template but i am a Smarty first timer. ;p -- Best regards, Artur Pydo.