Re: simple PHP-include (for text-file) - Plugin a must?
Posted: Sun Nov 04, 2007 4:04 pm
Hi,garvinhicking wrote:Check the "include_php" command from smarty. First you need to disable smarty security
in your template's config.inc.php file:
I had a similar problem, needed to add some PHP code to the template file. Of course,
I ran into that security issue, too. After reading some of the Smarty docu, I decided to
write a SMARTY function plugin as described here:
- * No changing of any security
* Can add PHP functionality with the same easy as any built in
Smarty function.
Yours
John