PHP and Smarty Templates

From: Date: Wed, 09 Oct 2002 17:17:17 +0000
Subject: PHP and Smarty Templates
Groups: php.dev 
Request: Send a blank email to php-dev+get-89293@lists.php.net to get a copy of this message
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.

« previous php.dev (#89293) next »