Forums / Setup & design / Embed a PHP Script

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Embed a PHP Script

Author Message

Andy Boston

Saturday 02 February 2008 3:32:16 am

Hi,

I have a PHP script that I want to embed in the pagelayout.tpl but it's not being run. The script references folders I've uploaded to the root directory and I've changed the paths accordingly but to no avail.

It runs perfectly on a HTML site but not on an ezp 4.0 site.

Is it possible to make this script run?

Please help, this is really frustrating!!!

André R.

Saturday 02 February 2008 3:59:36 am

Take a look at custom 'template operators' / functions, there are several examples in the contribution area. Basically you registers a function you can use in templates that calls you own php code.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom