Smarty API suggestion: template_exists()

From: Date: Tue, 02 Apr 2002 17:15:57 +0000
Subject: Smarty API suggestion: template_exists()
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3446@lists.php.net to get a copy of this message
I understand that the published Smarty API is kept as minimal as possible (and with good reason) but the following method could make sense: $smarty->template_exists('template.tpl'); // returns true or false depending on whether or not the template file exists Cheers, Simon Willison

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