fetch template errors?!

From: Date: Thu, 08 May 2003 11:28:01 +0000
Subject: fetch template errors?!
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9507@lists.php.net to get a copy of this message
hi folks, i got the following code in a php file using smarty: $content_tmpl_file = $_REQUEST['ct'].".tmpl"; $tmpl->display($content_tmpl_file); $_REQUEST['ct'] <<--- gets filenames (without ending) of the name of the templatefile.... so far so good. but if there'd be a request with a non existing templatefile, there just comes a smarty error that the file couln'd be opened or sth. like this. if this happens to a customer it's not that fine, so does sb. know a solution how to catch such errors and let me / my script react in any way? thx in advance ben ___________________________________________________________________________ ICQ: 30595778 web: http://www.doubleBnet.de http://www.disco-lifter.de (Mitfahrgelegenheit für Discos und Clubs) http://gbuch.get-digital.de (Hol Dir Dein kostenloses Gästebuch)

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