PHP within template

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

PHP within template

Postby wooglenetwork » Thu Jun 14, 2012 2:12 pm


I am wondering if there was a way to call an external php file within the templates. I have tried the following;

'allow_php_in_templates' to '1' in advanced configuration
the use [[php]] and [[/php]] instead of <?php etc

At the moment this doesn't display anything, if this doesn't work then is there anyway of creating a extension with a smarty tag to enable this to work.

Thanks in advance.

Pivotx version: 2.3.3
Posts: 3
Joined: Wed Mar 14, 2012 2:59 pm

Re: PHP within template

Postby Harm10 » Thu Jun 14, 2012 3:44 pm

Just coding php within the templates together with the allow option will work. But you are referring to calling an external php? Please explain that somewhat better (possibly with an example).
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 2 guests