Re: PHP and Smarty Templates
| From: | Arnaud Limbourg | Date: | Mon, 14 Oct 2002 06:23:41 +0000 |
| Subject: | Re: PHP and Smarty Templates | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89429@lists.php.net to get a copy of this message | ||
Please ask this question in smarty-general@lists.php.net
Thanks.
> I have a variable in a smarty template: $product.url ...
>
> Within the smarty template I have: {include file="getTable.tpl"} ...
>
> In the included template I have a function called: getTable($url) ...
>
> From the original template where the $product.url resides, I would like to
> pass that value into the php function but can't seem to figure out the
> syntax to do that. Please help. I have tried things like
> {php}getTable{{/php}{$product.url}{php});{/php} ... but obviously this
> doesn't work.
>
> Thank you for any assistance with this.
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>