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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.