PHP in a plugin

Creating and modifying plugins.
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

Re: simple PHP-include (for text-file) - Plugin a must?

Post by johncanary »

garvinhicking wrote:Check the "include_php" command from smarty. First you need to disable smarty security
in your template's config.inc.php file:
Hi,
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.
Just thought, I share my experience.

Yours
John
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14
Post Reply