Extension to manipulate an external php application

Author Message

Salvatore Guarino

Monday 17 September 2007 2:35:23 am

Hi, I have an external php application, a product configurator engine with a form to compile that returns a table with product components. I integrated this engine in my eZpublish site using an <iframe> tag, but this isn't a very good solution. I need an eZpublish extension that dialogues with my form application, sending variables to the form and receiving html code to display trough eZpublish engine. There is a simple way to do it, or (better) there is something, maybe a contrib extension, that can do it?

Thx,

Salvatore

Lazaro Ferreira

Monday 17 September 2007 4:21:43 am

Hi

Have you considered using php CURL ?

http://www.php.net/curl

You can create an extension to call CURL functions , it lets you past post parameters and received you application ouput ( HTML code ) as a result

Lazaro
http://www.mzbusiness.com

Peter Putzer

Monday 17 September 2007 7:09:12 am

Have a look at my SpreadShirt extension (http://ez.no/community/contribs/template_plugins/spreadshirt ), it does something similar.If you are accessing a local script, things are even easier.

The general idea would be to write a custom extension providing either a template operator or a fetch function (or both), allowing you to embed the desired functionality inside a standard eZ Publish template.

Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at

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