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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:30:23+00:00 2026-05-15T03:30:23+00:00

Is there a built in method in Zend Framework to convert a REQUEST_URI to

  • 0

Is there a built in method in Zend Framework to convert a REQUEST_URI to its route name?

I want to know if ZF dispatches my request to a route, what route is taken for that specific request.

For example, this is my routes.ini:

routes.about.route = ":lang/about-my-company"
routes.about.defaults.controller = index
routes.about.defaults.action = about

routes.contact.route = ":lang/contact"
routes.contact.defaults.controller = index
routes.contact.defaults.action = contactform

In this case: /en/about-my-company I want this as return value: about. Because that’s the name of the route.

  • 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-15T03:30:23+00:00Added an answer on May 15, 2026 at 3:30 am

    Found the answer:

    Zend_Controller_Front::getInstance()->getRouter()->getCurrentRouteName()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a built-in method to convert the .NET List<> into the F# list?
Is there a built-in method for it? The .NET framework must have a method
Is there any built-in method in asp.net to convert a string to a uniqueidentifier
Is there a built in method in .NET to convert a number to the
Is there any built-in method in Java which allows us to convert comma separated
I noticed in MVC4, there is a built in method called Request.Browser.IsMobileDevice. How do
Is there any built-in method in OpenCV ( C++ API ) to subtract two
There is no built in reverse method for Python's str object. How can I
Say you have an array built using wp_parse_args(). Is there a built in method
I may have missed this, but is there a built-in method for serializing/deserializing lua

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.