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

  • Home
  • SEARCH
  • 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 3499678
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:38:26+00:00 2026-05-18T12:38:26+00:00

I am currently developing a facebook canvas (iframe) based application. Is there any way

  • 0

I am currently developing a facebook canvas (iframe) based application. Is there any way to get Zend framework to output URLs like this:

http://app.facebook.com/appName/controller/action

intead of getting

http://www.domain.com/controller/action ?

It is not so important because due to iframe based app everything is working fine, but I’d like to provide better user experince and getting the url

http://app.facebook.com/appName/ 

is not user friendly at all. Probably the solution is very easy but I am completely “stack”. The application is devided to modules so I can change sth in Boostrap.php which is probably to hold the solution underneath my nose but I can not see it..:-/

EDIT:
Maybe i did not expressed it as I should have. The problem is not within facebook. The problem is in zend itself. It outputs the original application (e.g. myapp.example.com) URL and I want it to output http://app.facebook.com/myapp

Thanks in advance.

Lukas

  • 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-05-18T12:38:27+00:00Added an answer on May 18, 2026 at 12:38 pm

    Finally, I managed to solve this issue. So for fellow developers I am posting here my solution.

    The soulition is to be honest a bit complicated but:

    Use Zend_Controller_Router_Route_Hostname
    

    The example of usage can be found in http://framework.zend.com/manual/en/zend.controller.router.html the and then Chain it with classic route like:

    $hostnameRoute = new
        Zend_Controller_Router_Route_Hostname(
                         ':username.users.example.com',
                         array(       
                      'controller' => 'profile',
                      'action'     => 'userinfo'
                  )
          );
    $plainPathRoute = new Zend_Controller_Router_Route_Static('');
    $router->addRoute('user', $hostnameRoute->chain($plainPathRoute);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was currently developing a desktop application in C# using mono and testing in
I am currently developing a Rails application using a database that was designed before
I'm currently developing a PHP application that's using an Access database as a backend.
I'm currently developing an application that is comprised of five separate executables that communicate
I'm currently developing a web application in ASP.Net with SQL Server and I would
Currently i am trying to get remote image width/height. I am developing a link
I'm currently developing a web application for a particular niche. The point is that
we're currently developing an application that makes extensive use of popup windows(*) and have
We are currently developing a server whereby a client requests interest in changes to
I am currently developing an approval routing WCF service that will allow an user

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.