Re: [SMARTY] How to now if fetch() failed ?
| From: | Mark Rogers | Date: | Thu, 11 Dec 2003 10:54:22 +0000 |
| Subject: | Re: [SMARTY] How to now if fetch() failed ? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10660@lists.php.net to get a copy of this message | ||
> fetch() should return false when the template is not found, IMHO.
>
> my proposed change for that:
fetch() has a couple of other return points (and the implicit return at the
end of the function); can we make sure that it always returns something
which allows us to distinguish between success or failure? Many of the
return points simply return NULL at present.
--
Mark Rogers,
More Solutions Ltd