Forums / General / About website intergration

About website intergration

Author Message

Jianjun Hu

Monday 18 May 2009 1:12:02 am

I want to intergrate a PHP/MySQL based website into eZ Publish. That means: if a user loged into this website, he/she loged into eZ Publish at the same time. How to achieve such a functionality?

In addition, I want to intergrate a page within this website into the page within eZ Publish. Unfortunately, it's php template engine is Smarty. How to do in this condition?

I can only think about these questions. Maybe there are others. Could you please tell me?
Thanks!

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Gaetano Giunta

Monday 18 May 2009 7:37:28 am

For log-in integration you will need to set up a sso-handler or login handler (ie. write some php code in an extension). You will find some existing extensions that you can use as an example.

For integrating external applications, you will need to create a new module and view inside an extension. You will most likely need to write some code that hacks the received urls in ezp form to translate them into the form your app expects. The view will then include the php code from your application using ob_start and ob_end and set it into the $Result['content'] variable. You can decide whether you want to have the default eZ Publish pagelayout template around your app or not. In any case, the ezpublish policies will apply - to allow access to your smarty outputes the user will need to have a proper eZ permission granted.

Principal Consultant International Business
Member of the Community Project Board

Jianjun Hu

Monday 18 May 2009 5:07:01 pm

Thanks for your instruction, Gaetano Giunta. I am going to learnning SSO related knowledge.

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

eZ debug

Timing: Jan 18 2025 05:18:03
Script start
Timing: Jan 18 2025 05:18:03
Module start 'content'
Timing: Jan 18 2025 05:18:03
Module end 'content'
Timing: Jan 18 2025 05:18:03
Script end

Main resources:

Total runtime0.6832 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.0058 588.8203180.8438
Module start 'content' 0.00580.5468 769.6641544.5625
Module end 'content' 0.55270.1305 1,314.2266332.7578
Script end 0.6831  1,646.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5530210.0002
Check MTime0.00140.2081210.0001
Mysql Total
Database connection0.00040.063410.0004
Mysqli_queries0.616290.19171940.0032
Looping result0.00200.28661920.0000
Template Total0.659396.520.3297
Template load0.00180.266520.0009
Template processing0.657596.234520.3287
Template load and register function0.00010.020510.0001
states
state_id_array0.00090.137010.0009
state_identifier_array0.00070.109220.0004
Override
Cache load0.00150.2245160.0001
Sytem overhead
Fetch class attribute can translate value0.00180.269330.0006
Fetch class attribute name0.00100.152850.0002
XML
Image XML parsing0.00130.192030.0004
class_abstraction
Instantiating content class attribute0.00010.014860.0000
General
dbfile0.00360.5287330.0001
String conversion0.00000.001030.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs