Re: [SMARTY] Using Smarty for simple things only
| From: | Monte Ohrt | Date: | Fri, 04 Apr 2003 19:18:54 +0000 |
| Subject: | Re: [SMARTY] Using Smarty for simple things only | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9103@lists.php.net to get a copy of this message | ||
I never tried it... You could remove all the plugins, that would limit
things quite a bit. Built-in functions would still work. You would
probably still want things like {section} function to loop over arrays
of variables. Be sure to turn on security to disable php code.
What do you gain by disabling everything anyways? Just don't use them.
Monte
On Fri, 2003-04-04 at 12:45, Pamphile, Mr. Marcel (CEC) wrote:
> Is there any way to ignore all the features Smarty has to offer
>
> I only want to allow:
>
> 1. The display of variables example: {TITLE}
>
> 2. The display arrays variables.
>
> 3. Prevent the execution of PHP code within templates.
>
> 4. That's all
>
> Trying to keep things VERY simple...
>
> P.S. So as to not mess up the archives, please delete my first post on the
> topic "RE: [SMARTY] Application engine". Thanks for your comment John...
--
Monte Ohrt <monte@ispi.net>