Including PHP scripts ?

Author Message

Vincent Basset

Thursday 15 January 2004 1:51:52 am

Hi everybody,

I'm very new to ezPublish, and I find it very powerfull.

However, it seems to be as powerfull as difficult to manage for a new user....

Can anybody help me including PHP scripts into templates or anywhere ? (I'd like to add pages contaning PHP scripts to the website)

Thanks a lot,
Filigorn

Shurbann Martes

Thursday 15 January 2004 2:02:59 am

Filigorn,

Take a look here:
http://www.ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/including_php_files_in_templates

I have been using this include method without problems. If there's anything you don't understand, let me know.

Hope this helps,
-Shurbann

Vincent Basset

Thursday 15 January 2004 4:35:18 am

Great,

I'll try this !!!

thx :)

Vincent Basset

Friday 16 January 2004 3:24:42 am

Hi,

I succeeded including my script, but there is still a big problem : I can't manage to by-pass the template with my vars

how can I get a parameter in the url ?

thx

Björn Dieding@xrow.de

Friday 16 January 2004 6:52:26 am

Well this is might be a problem.

In gerneral you would have to write a new modul for it.

You could also try to create a operator that gets all var from the ezhttptool and parses it to your template, but hen might get troubles with the caching

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 18 2025 22:10:46
Script start
Timing: Jan 18 2025 22:10:46
Module start 'layout'
Timing: Jan 18 2025 22:10:46
Module start 'content'
Timing: Jan 18 2025 22:10:47
Module end 'content'
Timing: Jan 18 2025 22:10:47
Script end

Main resources:

Total runtime0.9693 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.8906152.6094
Module start 'layout' 0.00540.0025 740.500039.4141
Module start 'content' 0.00790.9596 779.9141588.4688
Module end 'content' 0.96750.0017 1,368.382812.1875
Script end 0.9692  1,380.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3204160.0002
Check MTime0.00130.1376160.0001
Mysql Total
Database connection0.00100.099010.0010
Mysqli_queries0.916794.5772650.0141
Looping result0.00080.0794630.0000
Template Total0.939897.020.4699
Template load0.00180.187620.0009
Template processing0.937996.765420.4690
Template load and register function0.00020.021110.0002
states
state_id_array0.00140.141510.0014
state_identifier_array0.00160.159920.0008
Override
Cache load0.00150.1559300.0001
Sytem overhead
Fetch class attribute can translate value0.00090.094030.0003
Fetch class attribute name0.00170.172360.0003
XML
Image XML parsing0.00090.088330.0003
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00180.1815160.0001
String conversion0.00000.000740.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs