Output of an Array variable in an object

From: Date: Wed, 13 Nov 2002 15:30:01 +0000
Subject: Output of an Array variable in an object
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6420@lists.php.net to get a copy of this message
Hi there, my project has the following constellation: - $db_movie object - $movieList[i] array of Elements like $title,$date,$rate etc. with getter and setter functions (get_title()) Now i want to move some elements of movieList (from i=1 to count($movieList) in a teble of a template. What is the best solution for it. Assign the object to the template or an array? Where will the loop be? In the template or better than in the php File. Is this possible: <loop> $smarty->display('template.tpl'); </loop> template.tpl is an include template of the main.tpl an will repeat i times. Thx for yout solutions. bye Kai

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