Re: Blank page - no errors while extending Smarty

From: Date: Thu, 12 Aug 2004 07:32:08 +0000
Subject: Re: Blank page - no errors while extending Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11672@lists.php.net to get a copy of this message
If you have something like: class MySmarty extends Smarty { function __construct() { ... } function Display(...) { ... } } ensure that in your Display method you have call to parent::Display(...) Ryan Kanno wrote:
I have a weird problem running Smarty 2.6.3 with PHP 5.0 running on Apache 2.0 on a Windows 2000 box. When I create the Smarty object itself, intialize the correct directories, etc, my pages all load fine. However, when I attempt to extend the Smarty class, to class MySmarty extends Smarty { ... and attempt to instantiate the MySmarty object, only a blank page shows up, with no errors. I have the correct error settings set in my scripts as well as my php.ini. I've cleared my cache, templates_c directories with no luck. I've checked the permissions in the directories. I do notice that there are files being created when running my extended class. I've tried all sorts of things to no avail... even printing out the class name, parent class, etc... I get all the correct names back. I was just wondering if this is a known bug or if anyone has seen something of the sort. Thanks, Ryan _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-- Ognyan Bankov ogre_bank@yahoo.com ogre.homelinux.org

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