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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:04:23+00:00 2026-06-17T10:04:23+00:00

I have an application already done with Symfony2 framework. The current rooting in the

  • 0

I have an application already done with Symfony2 framework.

The current rooting in the app lok like that :

http://testserver.loca.com/app_dev.php/Dashboard/

I would like to Add a dynamic prefix like that :

http://testserver.loca.com/app_dev.php/Prefix/Dashboard/

the dynamic Prefix will be chosen by the user when he click on a link that will send him directly to the Specific Page, the list will look like:

http://testserver.loca.com/app_dev.php/Prefix1/Dashboard/
http://testserver.loca.com/app_dev.php/Prefix2/Dashboard/
http://testserver.loca.com/app_dev.php/Prefix3/Dashboard/

I found around that there are a possibility to do it with a Service and an ExtraLoader Class, but i realdon’t know how to get this done.

  • 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-17T10:04:25+00:00Added an answer on June 17, 2026 at 10:04 am

    You could handle the prefix in the routing:

    /**
     * @Route("{prefix}/Dashboard", name="dynamic_dashboard")
     * @Template()
     */
    public function dynamicDashboardAction($prefix)
    {
        // Some way of deciding what to do based on prefix
        switch($prefix){
            case 'Prefix1':
                // Do stuff for prefix1 etc
            break;
            // etc
        }
    }
    

    In the above, the route has a place holder for prefix which is passed to the dynamicDashboardAction($prefix) method. In the view, you can use twig to pass the correct prefix from each link:

    <a href={{ path("dynamic_dashboard", {"prefix": "Prefix1"}) }}">Dashboard 1</a>
    <a href={{ path("dynamic_dashboard", {"prefix": "Prefix2"}) }}">Dashboard 2</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A have an app with that uses an SQL database. The application is already
I have an application that is already using the Spring Framework and Spring JDBC
http://bees4honey.com/blog/tutorial/how-to-add-iad-banner-in-iphoneipad-app/ I already do something like that link.. and it is working.. but I
I have an application in XCode using the sqlite/coredata database and that has already
I have an already built application and I want to add a feature that
I already have an iPhone application (version 1.0) available in the App Store and
http://jsfiddle.net/h2vMN/1/ I have a text box text inside it already, in the actual application
I have done some refactoring on a asp.net mvc application already deployed to a
    I have made an application already that sends commands to an activated window. I
I have a prism application already in production. I need to create a new

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.