AW: SmartySingleDir
| From: | Werner Schweizer | Date: | Thu, 11 Oct 2001 10:21:41 +0000 |
| Subject: | AW: SmartySingleDir | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1676@lists.php.net to get a copy of this message | ||
A remark.
Your subclass doesn't call the constructor of the Smarty class.
So I added the following code.
/*======================================================================*\
Function: SmartySingleDir
Purpose: Constructor
\*======================================================================*/
function SmartySingleDir()
{
$this->Smarty();
}
I can't see any difference in the behaviour.
But I'm assuming this code is required anyway.
Is that correct ?
tia
Werner
-----Ursprungliche Nachricht-----
Von: Werner Schweizer [mailto:W.Schweizer@SwissOnline.ch]
Gesendet: Mittwoch, 10. Oktober 2001 11:36
An: smarty@lists.ispi.net
Betreff: [smarty] AW: SmartySingleDir
Thank you very much !
This works for me !
Werner
-----Ursprungliche Nachricht-----
Von: Hans-Peter Oeri [mailto:lists+smarty@oeri.ch]
Gesendet: Dienstag, 9. Oktober 2001 22:57
An: smarty@lists.ispi.net
Betreff: [smarty] SmartySingleDir
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 ;)
Don't conform!
IkKampfCaspar75
---
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/