parameters from template to php-script

From: Date: Sat, 03 May 2003 09:46:09 +0000
Subject: parameters from template to php-script
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9461@lists.php.net to get a copy of this message
Hi, I am new to Smarty and I wonder if it is possible to set parameters from the template which can be used by the php-script. (I am used to writing JSP Custom Actions and I am looking for something similar here.) For example if I retrieve a list of customers from a database and store them into an array I can iterate over them with: {foreach from=$customers item=cust} name: {$cust->name}<br> {/foreach} What I am looking for is a way to specify which customers to look up in the database. Is there a way to do that with Smarty? As I said I am totally new to this. Maybe I am overlooking something obvious here. Thanks for any help! Horst Tellioglu

« previous php.smarty.general (#9461) next »