Re: [SMARTY] Problem with {if} and file_exists

From: Date: Wed, 07 May 2003 17:30:07 +0000
Subject: Re: [SMARTY] Problem with {if} and file_exists
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9501@lists.php.net to get a copy of this message
Hello, Guillaume Justier schrieb am Mittwoch, 7. Mai 2003 um 18:20: Thanks for all your answers. I found a solution following one of your hints: {assign var="image_name" value=$article.item_manufacturer|lower} {assign var="image" value="/home/sunflyer/public_html/media/manufacturer/$image_name.gif"} {if file_exists($image)} That works :) > As a rule, I try to keep as much of the logic as possible inside the php > file rather than in the template. I normally do that, but I prefer to implement such special things in the templates, because if I upgrade the software, I have to reimplement everything and that's not my hobby. :) Thanks, Andreas

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