Home » HTML » HTML_Template_IT » Bug #9753
Template rendering fails silently if invalid root supplied
Details
| Request #9753 | Template rendering fails silently if invalid root supplied |
|---|---|
| Submitted | 2007-01-06 01:04 UTC |
| From | pear-bug at andywaite dot com |
| Assigned | gregorycu |
| Status | Wont fix |
| Package | HTML_Template_IT |
| PHP Version | 4.4.4 |
| OS | Mac OS X 10.4, probably others |
| Roadmaps | (Not assigned) |
Comments
[2007-01-06 01:04 UTC] pear-bug at andywaite dot com
Description:
------------
As summary.
'badpath' refers to a path on the system which does not exist or is otherwise invalid.
Test script:
---------------
require_once "HTML/Template/IT.php";
$template = new HTML_Template_IT("./badpath");
$template->loadTemplatefile("test.tpl", false, true);
$template->setCurrentBlock("TESTBLOCK");
$template->setVariable("TESTPLACEHOLDER", "test");
$template->parseCurrentBlock();
$template->show();
Expected result:
----------------
An error/message reporting that 'badpath' does not exist.
Actual result:
--------------
Template renders as blank.
[2007-01-06 01:05 UTC] pear-bug at andywaite dot com
(correcting summary)