AW: [SMARTY] A proposal - files instead of dirs...
| From: | Werner Schweizer | Date: | Sat, 11 May 2002 09:39:17 +0000 |
| Subject: | AW: [SMARTY] A proposal - files instead of dirs... | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4168@lists.php.net to get a copy of this message | ||
I had the same problem a few moths ago and got the following work around
from Hans-Peter Oeri:
And it still works even with Smarty 2.1.0
Werner Schweizer
>Hi!
>
>As there might be some more interested in a single dir smarty, I
quickly subclassed it to achieve that very goal.
>
>Just include SmartySingleDir.class.php instead of Smarty.class.php and
change references to class Smarty to class
>SmartySingleDir (not too many >instances, if your code is well formed
*grin*)
>
>IMPORTANT: I only did a quick check... It may or may not work, blow up
your keyboard or cancel your bank account. Use it at your own risk.
>
>I will gladly fix bugs in this subclass upon information about them ;)
>
Attachment: [application/x-zip-compressed] SmartySingleDir.class.zip
Attachment: [application/x-zip-compressed] SmartySingleDir.class.zip