Re: [SMARTY] Smarty Doubt / Smarty Error Handling

From: Date: Thu, 16 Jan 2003 16:04:02 +0000
Subject: Re: [SMARTY] Smarty Doubt / Smarty Error Handling
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7231@lists.php.net to get a copy of this message
I'm using Pear for my DB abstraction with smarty, works out quite well actually. (Well, actually I wrote a custom class based on Pear for my db, same difference). What I'm really trying to figure out now is a good way to deal with smarty errors... right now, if my php is missing just one dollar sign for a variable, I just get a blank page and I have to 'zen' out where I'm messing up. For example, if somewhere in my .php I have "$thisvar = othervar" all I get is a blank page.. but if I change it to "$thisvar = $othervar" then the page shows up. I turned on E_ALL for errors, and I get some php warnings and errors sometimes. Has anyone written a generic error handling class specifically for use with smarty? > If Smarty is for Templating. Pear is for Database Abstraction. Basically > to make things simpler. > > what is the advantage to use smarty with pear? I can't use pear > > error-handling for smarty-errors, and everything else has nothing to do

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