Re: HTML_Template_IT return value from loadTemplatefile
| From: | Thomas A. Lowery | Date: | Thu, 17 Apr 2003 18:51:41 +0000 |
| Subject: | Re: HTML_Template_IT return value from loadTemplatefile | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4933@lists.php.net to get a copy of this message | ||
On Thu, Apr 17, 2003 at 10:08:01PM +0400, Alexey Borzov wrote:
> Greetings!
>
> Thomas A. Lowery wrote:
> >While debugging a recent problem I noticed that the method
> >loadTemplatefile (on failure) returns a boolean value where
> >as methods like setCurrentBlock, setVariable, and
> >parseCurrentBlock return an error object that provides more information
> >as to why it failed.
> >
> >Please consider enhancing the loadTemplatefile method to return an error
> >object on failure that provides a reason to why the method fail.
>
> <plug>
> Please consider switching to HTML_template_Sigma that shares the same
> Integrated Templates API but has a completely PEARified error handling. ;]
> </plug>
OK, it'll try it ... however this class suffers from (as most of PEAR
does) lack of documentation. As someone new to PHP development the lack
of well written examples and easily located documentation drives me
nuts.
Does the cache when the template changes and rebuilds the cached file?
Cache have a TTL (time to live)?
Are there any stats on time to parse the template v.s. loading from a
file?
Tom