Included script in block function doesn't show smarty and php compilation errors
| From: | Paolo Nesti Poggi | Date: | Wed, 22 Oct 2003 12:26:57 +0000 |
| Subject: | Included script in block function doesn't show smarty and php compilation errors | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10403@lists.php.net to get a copy of this message | ||
Hej,
I've written a block function and I'm having troubles in debugging when I
use it. This is what happens:
The function includes a script by means of
include_once ($content);
where $content is the content of the block tag. The idea is to let the
script return a string as the result of a call to
$this->fetch('template.tpl'), then the block function echoes it.
Everything is fine and the whole thing is functioning well.
The problem is that if the included script triggers some errors, also
compilation errors, I'm not able to see them.
This happens in spite of my php.ini error setting as E_ALL and SMARTY_DEBUG
on.
Furthermore if the call to $this->fetch('template.tpl') is wrong and
template.tpl doesn't exist I don't get any error either.
Now, is this intentional? And Do you have any idea of what I can do/look
into to change this behaviour, other than putting in place many checks
inside the block function?
have a good day
Paolo