Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 1120 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrate a Zend application into Drupal 6 / 7

#1
Given a "nacked" Zend application - is it possible to use the Drupal based layout and navigation?

What is the best way to integrate a Zend application into Drupal 6 / Drupal 7?

___

For Example:

User X visits my **Drupal page.**

He wants to use the **Zend-Application** called "Feedback".

This "Feedback" application should be able to use the layout of the Drupal page.

Everything but the outer layout would be written in PHP using Zend.
Reply

#2
The module doesn't do Zend Framework app integration, it just allows you to use some of the ZF components (ie. Zend_Mail). I actually integrated a ZF app in Drupal 5, based on the Drake module (CakePHP integration).

It basically defines a Drupal menu with callbacks, these callbacks are passed to the ZF app (by including my zend bootstrap). Output of the ZF app is stored in a var (using the output buffering PHP functions), and I fetch the page title/js/css from the HTML, strip what isn't needed and then pass these back to Drupal (using drupal_set_title, drupal_add_js and drupal_set_html_head respectively). And yes, this is dirty, but it works for me...
Reply

#3
I don't know drupal, but can't you simply include drupal files in your zend layout viewscript?
Reply

#4
Not sure this is quite what you want, but you can take out $application->run() from the Zend app's index.php and then include that file in any other application and have access to all of the resources of the Zend Framework and the Zend app itself.

Probably still quite involved to get it to do what you want though.
Reply

#5
Joomla has a "wrapper" layout option which just shove some url into an iframe in the layout. I use this a a lot to glue standalone applications to a corporate intranet at work, we just have to tailor stylesheets to match.

It's a quick and dirty path but get you there fast and users really don't care.

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through