Re: [SMARTY] SearchEngineSafeURL plugin?

From: Date: Thu, 21 Jul 2005 05:57:43 +0000
Subject: Re: [SMARTY] SearchEngineSafeURL plugin?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12820@lists.php.net to get a copy of this message
Pokrandt, Steven wrote: > ...is there a hook to allow php code to be executed > near the beginning say when the Smarty Class in instantiated. > new->smarty()? You could extend Smarty with a wrapper class, and precede the call to the Smarty() parent constructor with whatever you want to have happen first. <?php class Template extends Smarty { function Template { do_something(); $this->Smarty(); } } ?> -- Max Schwanekamp http://www.neptunewebworks.com/

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