Sv: [SMARTY] extending Smarty
| From: | anders dot janson at mailbox dot swipnet dot se | Date: | Thu, 05 Sep 2002 10:56:34 +0000 |
| Subject: | Sv: [SMARTY] extending Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5936@lists.php.net to get a copy of this message | ||
>
> Från: "Mattia" <mattia.c@libero.it>
> Datum: 2002/09/05 Thu PM 12:45:06 CEST
> Till: smarty-general@lists.php.net
> Ämne: [SMARTY] extending Smarty
>
(snip)
> class MySmarty extends Smarty
> {
> var $left_delimiter = $ld;
> var $right_delimiter = $rd;
> var $compile_check = true;
> }
>
>
>
> I get an error from the PHP parser (not Smarty). Anyone can suggest a way to
> do this??
Write a constructor that sets those variables, and then calls the original Smarty constructor.
/Anders
-------------------------------------------------
WebMail från Tele2 http://www.tele2.se
-------------------------------------------------