RE: new error checking
| From: | boots | Date: | Fri, 30 May 2003 19:47:27 +0000 |
| Subject: | RE: new error checking | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1522@lists.php.net to get a copy of this message | ||
---- Monte Ohrt <monte@ispi.net> Wrote: -----
> I added some error checking to the write_compiled_file and
> write_cache_file routines to hopefully reduce some FAQs in the
> forums.
cool!
It would be very cool if the error messages included links to the
appropriate manual or FAQ entry.
> If the directory is not writable, you will get an error like so:
How about instead of is_writable, you actually attempt to write and
then recover from a failed write attempt with:
<b>Fatal error</b>: Smarty error: $compile_dir '/path/to/templates_c'
is not available. Ensure $compile_dir is writable by the web
server user. In <b>/path/to/libs/Smarty.class.php</b> on line
<b>1087</b><br />
xo boots
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com