AW: Smarty Compilation and directories

From: Date: Wed, 02 Jan 2002 14:45:06 +0000
Subject: AW: Smarty Compilation and directories
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2466@lists.php.net to get a copy of this message
This is what I got from Hans-Peter Oeri to solve this problem. Werner Schweizer | 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 ;) | | Don't conform! | IkKampfCaspar75 > -----Ursprungliche Nachricht----- > Von: Bertrand DUNOGIER [mailto:bdunogier@wanadoo.fr] > Gesendet: Mittwoch, 2. Januar 2002 14:55 > An: smarty@lists.ispi.net > Betreff: [smarty] Smarty Compilation and directories > > > Hi, > > in older smarty versions, compiled templates wasn't stored in > directories, but at the root of $compile_dir, did they ? > > If yes, in what version did it change, and... why ? This is what make > that smarty can't run on a Safe Mode server (since created > directories can't > be chowned to your UID, you can't create files in $compile_dir's > subdirectories). I know, it can work if you change the config, but i > can't change the config... > > -- > Best regards, > Bertrand mailto:bdunogier@wanadoo.fr > > > --- > You are currently subscribed to smarty as: W.Schweizer@SwissOnline.ch > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ >

Attachment: [application/octet-stream] SmartySingleDir.class.php.bz2
« previous php.smarty.general (#2466) next »