check existence of template file

From: Date: Sat, 28 Apr 2001 19:14:14 +0000
Subject: check existence of template file
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-638@lists.php.net to get a copy of this message
Is there an easy way to check if a template file exists? Something like this: if ($template->check("templatefile.tpl")) { $template->display("templatefile.tpl"); } else { $template->display("default.tpl"); } Joris

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