Object to foreach loop

From: Date: Mon, 04 Oct 2004 21:22:49 +0000
Subject: Object to foreach loop
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11854@lists.php.net to get a copy of this message
Hello, I am trying to create an instance of an object (Customers) for example and pass that object to the template to display the customers info(name, address, etc). I tried this: $customer = new Customer($theirid); $smarty = new Smarty(); $smarty->assign('customer',$customer); If I print_r the $smarty object, it contains all the customers' values. How do I display them in the template?

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