Re: [SMARTY] SearchEngineSafeURL plugin?
Maximillian Schwanekamp <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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/
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php