Project structure modification - ezpublish as sub-module/external

Author Message

STEVO +

Monday 25 October 2010 4:59:47 am

Hi,

I'm wondering if anybody has any interest in / made progress towards a patch allowing a project structure that's more like this:

 site

 +-- extension
 +-- ezpublish
 +-- settings
 +-- var
 +-- bootstrap.php

Seems to be a more sensible approach for maintainability etc or maybe I'm just being weird?

Nicolas Pastorino

Monday 25 October 2010 10:08:54 am

Hi Stevo,

That is a tricky & interesting topic. Not sure why you are including var here ?
Other than this, i usually version my eZ Publish projects according to the structure described above (but for the 'ezpublish' directory, obviously), then using symlinks to place the versioned dirs at the right location within the ezpublish dir. Not sure to understand the role of bootstrap.php either.

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

kracker (the)

Monday 25 October 2010 3:11:34 pm

Hello Stevo,

An interesting idea you propose... one to discuss but I fear without real vision one that would prove rather clumsy to implement.

Cheers,

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

STEVO +

Tuesday 26 October 2010 4:16:58 am

@Nicolas

I include var as it's contents are site specific.

Yes, currently I use symlinks similar to what you describe but I find it a pain + tend to develop on windows.

The idea of bootstrap.php is that it modifies include path etc then includes relevant index*.php

@kracker

Yeah, I started having a poke around and it proved more difficult than I was anticipating. Hmm, can't remember what the sticking point was now. Might have another go soon...

Thanks for the replies guys

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 17 2025 23:40:54
Script start
Timing: Jan 17 2025 23:40:54
Module start 'layout'
Timing: Jan 17 2025 23:40:54
Module start 'content'
Timing: Jan 17 2025 23:40:55
Module end 'content'
Timing: Jan 17 2025 23:40:55
Script end

Main resources:

Total runtime0.7009 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1719152.6563
Module start 'layout' 0.00650.0029 740.828139.5156
Module start 'content' 0.00940.6901 780.3438600.7578
Module end 'content' 0.69950.0014 1,381.101612.0938
Script end 0.7009  1,393.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4279160.0002
Check MTime0.00120.1734160.0001
Mysql Total
Database connection0.00150.220610.0015
Mysqli_queries0.646992.2929620.0104
Looping result0.00070.0936600.0000
Template Total0.670895.720.3354
Template load0.00200.281120.0010
Template processing0.668895.415920.3344
Template load and register function0.00010.014710.0001
states
state_id_array0.00160.230210.0016
state_identifier_array0.00100.140120.0005
Override
Cache load0.00160.2337290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.084630.0002
Fetch class attribute name0.00120.169170.0002
XML
Image XML parsing0.00150.216230.0005
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00110.1565300.0000
String conversion0.00000.001340.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs