Forums / General / ezPublish Basics

ezPublish Basics

Author Message

Henrik Brinkmann

Tuesday 14 June 2005 7:13:43 am

Hi all!

I'm new to eZPublish and i need some basic information about how eZPublish works.
I've read throug the documentation but there's still some Information which i'm missing or haven't found.

Is there some documentation which describes how eZPublish works in a detailed way?
For example: What exactly happens when i click on a specific link.
From what i know so far the choosen page is extracted from the url and some relating php File is called which again uses a specific template to show the desired content.
But how does this work in detail?

I've problems to find out which php-File is responsible to handle request x or y and uses template-file x or y.

For example if i click on "Media Files" in the live demo (user-interface).
The url in the browser changes to "http://devel.ezpublish.no/media_files" and a list of files is shown up. So from what i know after reading the basic Documentation this url calls the module "media_files". But which PHP-File is really called and then handles the request?

I've browsed through the directory structure and looked in some Files but i can't find out which file has which function.

I would be very glad if someone could give me link to a more detailed documentation or anything else which would help me to understand the basic structure of eZPublish.

Thanks in advance

Frank

Frederik Holljen

Tuesday 14 June 2005 7:25:47 am

The new documentation that will be online soon (it should have been online already but was postponed because of illness in the ez.no crew) will explain this in detail.

The crash course is as follows:
Index.php always handles the eZ publish requests. Basically index.php then runs the url through our nice URL engine. Your url "media_files" is then translated into what we call a system url. The system URL will in your case probably look something like "content/view/full/21". (You can use system url's directly from your browser if you like.. but then you need to know the node id at the end).

The system url tells you the module and the view to run. In your case it is the module "content" and the view "full". The rest of the URL is forwarded to the view as parameters.

After translating eZ publish runs the module and the view. In the case of the content module you should look at the files in the directory kernel/content/. module.php defines the various views etc.

The view loads and generates output via a template. The module output is given back to index.php which loads the main template pagelayout.tpl which outputs the module output wherever the user specified.

That should explain how a basic page request is handled with eZ publish. In case of input to eZ publish look at the "actions" that are also defined within module.php.

Henrik Brinkmann

Tuesday 14 June 2005 7:34:07 am

thanks for the fast answer, i'll try to "dig" at the specified points :-)

Anyway i'm looking forward to the new documentation :-)

eZ debug

Timing: Jan 18 2025 19:25:42
Script start
Timing: Jan 18 2025 19:25:42
Module start 'content'
Timing: Jan 18 2025 19:25:43
Module end 'content'
Timing: Jan 18 2025 19:25:43
Script end

Main resources:

Total runtime0.8758 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0078180.8516
Module start 'content' 0.00630.7158 769.8594515.1172
Module end 'content' 0.72210.1537 1,284.9766333.0859
Script end 0.8758  1,618.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4814210.0002
Check MTime0.00160.1790210.0001
Mysql Total
Database connection0.00070.077910.0007
Mysqli_queries0.807692.20441940.0042
Looping result0.00190.21281920.0000
Template Total0.847096.720.4235
Template load0.00230.258620.0011
Template processing0.844796.444120.4223
Template load and register function0.00020.020010.0002
states
state_id_array0.00100.116810.0010
state_identifier_array0.00120.139620.0006
Override
Cache load0.00190.2125290.0001
Sytem overhead
Fetch class attribute can translate value0.00110.126330.0004
Fetch class attribute name0.00090.108440.0002
XML
Image XML parsing0.00090.099230.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00300.3392270.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs