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 9124103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:29:52+00:00 2026-06-17T06:29:52+00:00

How could I join 2 or more zend applications inside another one? In other

  • 0

How could I join 2 or more zend applications inside another one?
In other words, let’s assume that I have this structure:

    /core
        /application
        /public
        ...
    /app1
        /application
        /public
        ...
    /app2
        /application
        /public
        ...

When a access http://some_url.com/core, I want o show the core application but, when I access http://some_url.com/app1, I want to show the core + app1 application.
Basically, it should show the same thing of http://some_url.com/core but with extra links/actions that exists on app1 application.

The same thing should occur with http://some_url.com/app2 (core + app2).

I thought I could create a different index.php for applications app1 and app2 in order to load the “core” application but, my problem is that I don’t know how could I access a controller/action of app1 or app2 if I do that, using for example,
http://some_url.com/app1/controller_A/action_B

I’m using Zend Framework 1.11.

EDIT

I saw somewhere a function named addControllerPath. Can anyone tell me if it would work for what I want?

  • 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-17T06:29:53+00:00Added an answer on June 17, 2026 at 6:29 am

    You can get the server uri, and choose your application in index.php

    // Define path to application directory
    $uri = $_SERVER["REQUEST_URI"];
    if (strpos($uri, 'core') == 1) {
        defined('APPLICATION_PATH')
            || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../core'));
    }
    elseif (strpos($uri, 'app1') == 1) {
        defined('APPLICATION_PATH')
            || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../app1'));
    }
    elseif (strpos($uri, 'app2') == 1) {
        defined('APPLICATION_PATH')
            || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../app2'));
    }
    else {
        defined('APPLICATION_PATH')
            || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../default'));
    }
    

    instead the Zend default

    // Define path to application directory
    defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SQL query that executes a LEFT JOIN on another table, then
How could I optimize this MySQL queries that is accessing two tables with more
I have two tables. Each product could have one or more files. But each
I could test upload of one file attach_file 'photo', File.join(Rails.root, 'public', 'uploads', 'test.png') But
I have a simple query and am wondering if it could be more elegantly
I have two tables that I need to join... I want to join table1
I have a join function that operates on STL strings. I want to be
A Party can have one or more Contact objects. I want to select all
I have trouble grasping joins between more that two tables and it's syntax. I
It seems illogical that this statement could throw a 404 error. Any ideas? users.create_logout_url(self.request.uri)

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.