Re: [SMARTY] smarty 2.6.2 : Fatal error: Call to undefined function: _compile_template() ????
| From: | messju mohr | Date: | Wed, 03 Mar 2004 17:53:21 +0000 |
| Subject: | Re: [SMARTY] smarty 2.6.2 : Fatal error: Call to undefined function: _compile_template() ???? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11046@lists.php.net to get a copy of this message | ||
On Wed, Mar 03, 2004 at 06:46:42PM +0100, Olivier Hericord wrote:
> hi,
>
>
> i have a plugin where i wrote :
>
> function smarty_function_traducteur2($params, &$this)
> {
> extract($params);
> $trad = new translate;
> $this->_compile_template("evaluated template",
> $trad->traducteur($VERBOSE), $source);
> eval('?>' . $source);
> }
>
>
> in smarty 2,6,2 it generates an error:
> Fatal error: Call to undefined function: _compile_template()
>
> why?
obviously because the function doesn't exist anymore. this can always
happen if you rely on internal functions/structures.
_compile_template() was never meant for public consumption.
> a way to correct this?
sure, have a look into function.eval.php on how that works.
> thanks