Re: [SMARTY] Re: Blank page - no errors while extending Smarty

From: Date: Fri, 13 Aug 2004 03:48:05 +0000
Subject: Re: [SMARTY] Re: Blank page - no errors while extending Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11678@lists.php.net to get a copy of this message
The following test case works fine for me: <?php include 'libs/Smarty.class.php'; class MySmarty extends Smarty{ public function fetch($resource_name, $cache_id=null, $compile_id=null, $display=false) { return parent::fetch($resource_name, $cache_id, $compile_id, $display); } } $smarty = new MySmarty; echo $smarty->fetch('test.tpl'); ?> This is on Smarty 2.6.4-dev with PHP5.0.0RC3, though nothing will have changed that affects this since Smarty 2.6.3. -bok On Thu, 12 Aug 2004 23:03:38 +0000, Ryan Kanno <kannoberg@hotmail.com> wrote: > > Ok, I agree that Smarty wasn't created to run statically, but my inquiry is > why is it that when I override the function 'fetch', no output appears with > no error messages? Even with nothing in the body of the method, no output > appears. So now, I have the following: > > public function fetch() { > //return parent::fetch(...); > } > > Any ideas? > > Thanks, > Ryan > > _________________________________________________________________ > Get ready for school! Find articles, homework help and more in the Back to > School Guide! > http://special.msn.com/network/04backtoschool.armx > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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