Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9250027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:20:51+00:00 2026-06-18T10:20:51+00:00

I have a Zend web application running next to Drupal 6. The basic structure

  • 0

I have a Zend web application running next to Drupal 6. The basic structure is like this:

www.domain.com/cms/
www.domain.com/zf/

CMS is Drupal content, and ZF is Zend Framework content.

Here’s the question. I’m looking to place the primary/secondary links from Drupal into the ZF menus so that the pages are relatively seamless as you navigate between the CMS and Zend. Currently there’s an Ajax call being done in Zend to get the primary links from Drupal. This is inefficient and shows up on reports, thus why I’m tasked with fixing it.

Conceptually, what might be the best way to do this? Should I include a file from Drupal in my ZF app, or something else? I have very little knowledge of Drupal, so I’m not sure if I can just do a database call to get the links, or if there’s a function I should be calling.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:20:53+00:00Added an answer on June 18, 2026 at 10:20 am

    Id’ say the best way is to export the Drupal menu in some kind of format and then parse it in your ZF application. And to keep it in sync just write a small script that does the export and run it daily or whatever suits your needs (preferably when your site has the lowest traffic, if performance is a priority).

    Here is a list of functions related to Drupal menu: Menu system

    This is something that will get you started:

      $menus = menu_get_menus();
      foreach ($menus as $menu_machine_name => $menu_human_name) {
        $menu_items = menu_tree_all_data($menu_machine_name);
      }
    

    But you’d have to bootstrap Drupal, to have access to all the Drupal’s function. So you can do something like this:

    require_once 'path/to/drupal/folder/installation/includes/bootstrap.inc'; 
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); // you now have access to all Drupal functions
    

    And of course you could just do a direct database call, but first you have to see how Drupal gets the menu structure and then just strip out the SQL queries you need.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use Zend Framework in my web application. I have the next URL: domain/user/user/username
I have a PHP5/Zend Framework 1.8.1 web site which is located at: http://www.example.com/foo The
Hi I have this small code fragment from a web application built on ZEND
I'm building a web application using PHP5.3 and Zend Framework 1.9.4. i have an
All, I have a PHP Web application built using Zend Framework and MVC with
have such zend query: $select = $this->_table ->select() ->where('title LIKE ?', '%'.$searchWord.'%') ->where('description LIKE
I have a Zend Framework (PHP) web application that has a table with a
I'm having this weird thing happen. My Zend Framework (PHP) web application that I
I have a big web application that worked in PHP 5.3.2 with Zend FrameWork,
I have build a web application in Zend Framework and now desperately need a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.