subclassing smarty problem

From: Date: Thu, 10 Apr 2003 00:50:58 +0000
Subject: subclassing smarty problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9202@lists.php.net to get a copy of this message
as written by month here http://marc.theaimsgroup.com/?l=smarty-general&m=101393751619386&w=2 i wrote something like this in my code: myapp_setup.php --------------- include("Smarty.class.php"); class Myapp_Smarty extends Smarty {
        // call constructor
        $this->Smarty();
        // setup Smarty configs for your app
        $this->template_dir = './my/path/to/templates';
        $this->caching=true;
} index.php --------- include("myapp_setup.php"); $smarty = new Myapp_Smarty; $smarty->display('index.tpl'); but it gives me an error!!! Parse error : parse error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /Users/me/MySites/myproject/code/myapp_setup.php on line 5 line 5 is $this->Smarty(); What's going on...i don't undersatnd

« previous php.smarty.general (#9202) next »