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?

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 11:42:36
Script start
Timing: Jan 18 2025 11:42:36
Module start 'layout'
Timing: Jan 18 2025 11:42:36
Module start 'content'
Timing: Jan 18 2025 11:42:37
Module end 'content'
Timing: Jan 18 2025 11:42:37
Script end

Main resources:

Total runtime0.7030 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.6797152.6250
Module start 'layout' 0.00530.0053 742.304739.4453
Module start 'content' 0.01060.6909 781.7500539.4844
Module end 'content' 0.70140.0016 1,321.234412.1641
Script end 0.7030  1,333.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5822160.0003
Check MTime0.00200.2810160.0001
Mysql Total
Database connection0.00050.072510.0005
Mysqli_queries0.643991.5880570.0113
Looping result0.00070.0970550.0000
Template Total0.661394.120.3307
Template load0.00220.313120.0011
Template processing0.659193.752420.3295
Template load and register function0.00010.013510.0001
states
state_id_array0.00260.364310.0026
state_identifier_array0.00120.175720.0006
Override
Cache load0.00190.2638160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.092420.0003
Fetch class attribute name0.00200.287650.0004
XML
Image XML parsing0.00100.146520.0005
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00100.1477220.0000
String conversion0.00000.001440.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/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs