I want to add my own .php file in ezpublish

Author Message

Avishek Chakraborty

Friday 08 June 2007 2:57:01 am

This is the first time I am using ezpublish.
I want to add my own .php file in ezpublish, please tell me how to do that

Sébastien Morel

Friday 08 June 2007 3:55:07 am

Hello,

You must do an extension, for this operation read this :

http://ez.no/ezpublish/documentation/development/extensions/template_operator
http://ez.no/ezpublish/documentation/development/extensions/introduction_to_extensions

++

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Pascal Specht

Thursday 14 June 2007 6:37:12 am

Hello Avishek,

It's not clear what you mean by 'add', so maybe you're not talking about extending eZpublish, but just adding php files...Then if you wonder why you can't have your own php file executed on the web server, it may also just be that the rewriteRule is preventing the server from serving your page!

Adding this rule in your httpd configuration may then be your solution:

       RewriteRule ^/my_own_file.php$ /my_own_file.php [L]

Hope this helps,
Pascal

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 15:53:42
Script start
Timing: Jan 18 2025 15:53:42
Module start 'layout'
Timing: Jan 18 2025 15:53:42
Module start 'content'
Timing: Jan 18 2025 15:53:43
Module end 'content'
Timing: Jan 18 2025 15:53:43
Script end

Main resources:

Total runtime0.6684 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 589.4766152.6406
Module start 'layout' 0.00990.0038 742.117239.4766
Module start 'content' 0.01360.6532 781.5938575.4219
Module end 'content' 0.66680.0016 1,357.015612.1250
Script end 0.6684  1,369.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5363160.0002
Check MTime0.00140.2153160.0001
Mysql Total
Database connection0.00150.231110.0015
Mysqli_queries0.597389.3614590.0101
Looping result0.00050.0802570.0000
Template Total0.622893.220.3114
Template load0.00230.347820.0012
Template processing0.620592.826820.3102
Template load and register function0.00020.023210.0002
states
state_id_array0.00130.198110.0013
state_identifier_array0.00120.181520.0006
Override
Cache load0.00180.2714200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.117730.0003
Fetch class attribute name0.00100.147850.0002
XML
Image XML parsing0.00520.770630.0017
class_abstraction
Instantiating content class attribute0.00000.003450.0000
General
dbfile0.00701.0480220.0003
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs