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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:49:34+00:00 2026-05-11T20:49:34+00:00

I’m currently writing an application that works with modules. The module part is all

  • 0

I’m currently writing an application that works with modules. The module part is all okay, but I am not entirely clear on what would be the best approach to display multiple modules on a same page. The way common MVC like systems could work is that an URL like “site.com/article/full/18543/how-to-lose-weight” (I’m not implying anything about you :)) -> would launch “article” -module and call its “full” -method with params “18543” and “how-to-lose-weight”.

However, I’m writing an application where I need to have multiple modules on the same page. Currently, I let the user to create, delete and modify pages. He has an interface (a GUI) to decide how a page should look like. For example, he can name page “article” and make it to look like a two-column layout where he wants to have a shoutbox on the rightside in a sidebar and articles on the main body (the larger column). Now, how would I go for constructing the URL for something like that? I would like to keep my current page system, but I find it a bit hard to come up with a solution. You see, if the URL would load the “article” module, then the shoutbox wouldn’t be loaded. So, I guess the URL is a reference to a DB entry containing the info about which modules to load? That’s my current thought. So, after the user has created a page “article” and put two modules into the “article” -page (which is a two-column layout), then the URL “site.com/article/full/18543/how-to-lose-weight” would load the “article” -page, which tells the application the needed modules to load.

This leads me to two questions/problems. First, would the rest of the URL “/full/18543/how-to-lose-weight” go to the “article” -module or to the “shoutbox” -module? How do I determine that? The second problem is if this “shoutbox” -module has a link to register an account rather than posting as an anonymous, where will this link take the user to?

I’m basically trying to figure out a good way to build a relationship between different pages, modules and URLs.

Currently I have:
Skins that handle the appearence and the possible positions where you can place modules.
Pages that tell which modules are in which “page” and where they are positioned (in a skin).

And now I need to determine the way I work with URLs. Any help is welcome. 🙂

FYI: I’m using PHP and MySQL if that matters…

  • 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-11T20:49:35+00:00Added an answer on May 11, 2026 at 8:49 pm

    I would suggest definitely going to a full-on MVC framework. If this (arguably simple) logic is troublesome for you, try to learn from the giants.

    Even if you just dive into them to learn, and reply their concept; you’re probably a bit better off.

    CakePHP for example can use multiple controllers in 1 view, if required. It can also use something called ‘elements’ which allow to build up little views within a bigger view..

    Think about it 🙂 There is no direct need to completely connect urls and your controllers (thats what your modules are..). Also, you need to make sure your modules don’t output any presentation markup (html), thats the view’s job.

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

Sidebar

Ask A Question

Stats

  • Questions 140k
  • Answers 140k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Something I added recently to AutoMapper might help you -… May 12, 2026 at 7:55 am
  • Editorial Team
    Editorial Team added an answer I just dealt with this very issue in the last… May 12, 2026 at 7:55 am
  • Editorial Team
    Editorial Team added an answer Although I have not used it, it appears that you… May 12, 2026 at 7:55 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.