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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:51:54+00:00 2026-05-24T21:51:54+00:00

I am starting to build my web application progressively, adding routes and other routes

  • 0

I am starting to build my web application progressively, adding routes and other routes to the router. The application is not a single page application, in the sense that it offers relatively independent features.

For example, if you had to build an application including a wiki, a dashboard (and settings), as well as a game using the wiki’s data, should you use only one router with many routes? or should you split the application into small sub-applications with their own controllers?

In both cases, how to handle the problem of i18n? and loaded bootstrapped models (in case of a single router)?

  • 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-24T21:51:55+00:00Added an answer on May 24, 2026 at 9:51 pm

    Originally, I’ll say it depends on your application architecture/features and the scale of websites you are going to do…

    Pros for a single routing file

    • Compliant to the rule: simpler is -always- better, so if you don’t really needs multiple routing file, just don’t.
    • Multiple files may lead to collision problems that could be a hell to resolve.
    • My personnal experience, after having myself worked on a homemade web app, I kept only one single file in the app’s directory.

    But what about multiple routing file?

    You could however find a legitimate usage to multiple routing files if you have different plugins to handle content-types (wiki, dashboard, gallery…), and if they automatically implement routes (that won’t change from a website to another).

    In this case you could use small file specifically for each plugins that will be automatically merged to the app routing file (Note: as I previously mentionned, by doing this you could experience route collisions between files).
    In my homemade app, I’m using this solution to handle the backend (admin) panel, I “solved” the collision problem, by reserving the “/admin/” route for the backend then all plugin’s routes get prefixed with it.

    The PHP-Framework Symfony example

    Don’t take the following as a “you should do it like this” but you can look how it’s done in Symfony here: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System

    # default rules
    homepage:
      url:   /
      param: { module: default, action: index }
    
    default_symfony:
      url:   /symfony/:action/*
      param: { module: default }
    
    default_index:
      url:   /:module
      param: { action: index }
    
    default:
      url:   /:module/:action/*
    

    I18n

    Are you willing to translate urls ?
    If yes, remember me simpler-is-better statement. Do you really need it ? I’m aware that it may grant you some SEO boost, but I don’t think it would be worth the squeeze.
    In this case, you could use 1 file per language, per app.

    PS: what do you mean by “bootstrapped models (in case of a single router)?”

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

Sidebar

Related Questions

I am starting to build a new web application that will require user accounts.
I'm starting a new web application that will be made of multiple parts or
I am just starting my first MVC Web Application and have noticed that I
I am trying to build a Google Maps-driven web application that can display a
I'm starting deployment of my web application and I need to guarantee that all
Concerning pages that build a web application: Lately, I have found myself creating web
Starting to build web applications for mobile devices (any phone). What would be the
I'm starting to build a community website from the site up and my web
I'm trying to build an application starting from an Appfuse Archetype, but I get
I’m starting to think about and develop an architecture for a big web application,

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.