Forums / General / About website intergration
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
Monday 18 May 2009 5:07:01 pm
Thanks for your instruction, Gaetano Giunta. I am going to learnning SSO related knowledge.
OnlyBlue