How to execute PHP code from Ez

Author Message

Luis M

Thursday 25 January 2007 10:24:03 am

Hi,

This is probably a very dummy question, and probably with a very quick answer :-)

I looked the Ez Components, and about PHP frameworks.

So, how can I pass variables to a PHP script outside the Ez Publish, and return other variables?
example, If I have a Postgres Database for some kind of different applicatrion, how can I do the SQL statements, and return the output data to the template?

Thanks,

Ɓukasz Serwatka

Thursday 25 January 2007 11:40:32 pm

Hi,

You can make an extensnion:
http://ez.no/ezpublish/documentation/development

Look on this topic for more information about connection to external database:
http://ez.no/community/forum/developer/using_external_db_in_extension_causes_problems

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 08:10:20
Script start
Timing: Jan 31 2025 08:10:20
Module start 'layout'
Timing: Jan 31 2025 08:10:20
Module start 'content'
Timing: Jan 31 2025 08:10:21
Module end 'content'
Timing: Jan 31 2025 08:10:21
Script end

Main resources:

Total runtime1.1952 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1328151.2109
Module start 'layout' 0.00520.0029 739.343836.6484
Module start 'content' 0.00811.1861 775.9922922.7656
Module end 'content' 1.19430.0009 1,698.75787.8516
Script end 1.1952  1,706.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2482160.0002
Check MTime0.00130.1060160.0001
Mysql Total
Database connection0.00090.074010.0009
Mysqli_queries1.148496.0843540.0213
Looping result0.00050.0448520.0000
Template Total1.154896.620.5774
Template load0.00200.168320.0010
Template processing1.152896.447620.5764
Template load and register function0.00110.094010.0011
states
state_id_array0.00220.183810.0022
state_identifier_array0.00190.160120.0010
Override
Cache load0.00160.1302160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.072420.0004
Fetch class attribute name0.00160.135730.0005
XML
Image XML parsing0.00070.061920.0004
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00290.2418180.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs