AW: [SMARTY] Big problems thanks to safemode
| From: | Werner Schweizer | Date: | Thu, 30 May 2002 19:56:55 +0000 |
| Subject: | AW: [SMARTY] Big problems thanks to safemode | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4471@lists.php.net to get a copy of this message | ||
I hope, some day smarty has an option $smarty->use_subdirs=true/false
to control that.
As this question comes up every two to three months.
Werner Schweizer
> -----Ursprüngliche Nachricht-----
> Von: Werner Schweizer [mailto:W.Schweizer@swissonline.ch]
> Gesendet: Donnerstag, 30. Mai 2002 21:49
> An: smarty-general@lists.php.net
> Betreff: AW: [SMARTY] Big problems thanks to safemode
>
>
> I'm running it on PHP 4.1.2 with Smarty 2.1.1.
> But I had to eliminate the using uf subdirectories in cache
> and templates_c. I did this by subclassing smarty by a piece
> of code I got from Hans-Peter Oeri.
>
> Here his comment:
> ----------------------
> >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 ;)
> ----------------------
>
> I appended SmartySingleDir.class.zip
>
> mfg
> Werner Schweizer
>
> > -----Ursprüngliche Nachricht-----
> > Von: MishY [mailto:mishy@cybertechhelp.com]
> > Gesendet: Donnerstag, 30. Mai 2002 20:52
> > An: smarty-general@lists.php.net
> > Betreff: [SMARTY] Big problems thanks to safemode
> >
> >
> > Heya,
> >
> > Anyone know how to get smarty running under safemode ?
> >
> > My hosts won't disable it :-(
> >
> > Thanks,
> >
> >
> >
> >
> >
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>