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.

eZ debug

Timing: Jan 19 2025 03:26:52
Script start
Timing: Jan 19 2025 03:26:52
Module start 'layout'
Timing: Jan 19 2025 03:26:52
Module start 'content'
Timing: Jan 19 2025 03:26:52
Module end 'content'
Timing: Jan 19 2025 03:26:52
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.3047152.6406
Module start 'layout' 0.00490.0024 741.945339.4766
Module start 'content' 0.00730.0046 781.421989.2734
Module end 'content' 0.01200.0018 870.695334.3047
Script end 0.0138  905.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.3752140.0002
Check MTime0.00118.0274140.0001
Mysql Total
Database connection0.00074.965110.0007
Mysqli_queries0.002215.657430.0007
Looping result0.00000.079510.0000
Template Total0.001511.010.0015
Template load0.00085.689210.0008
Template processing0.00075.239910.0007
Override
Cache load0.00064.109610.0006
General
dbfile0.00031.911480.0000
String conversion0.00000.043240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs