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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:23:33+00:00 2026-05-20T01:23:33+00:00

in my site i need process the following urls: http://localhost/groups/ {id_group} localhost/groups/{id_group}/events localhost/groups/{id_group}/events/{id_event} localhost/groups/{id_group}/events/{id_event}/galery

  • 0

in my site i need process the following urls:

http://localhost/groups/{id_group}

localhost/groups/{id_group}/events

localhost/groups/{id_group}/events/{id_event}

localhost/groups/{id_group}/events/{id_event}/galery

localhost/groups/{id_group}/events/{id_event}/galery/{id_galery}/{id_photo}

localhost/groups/{id_group}/events/{id_event}/notes/{id_note}

I created the following structure:

application/

application/groups/

application/groups/controllers

application/groups/controllers/GroupController.php

application/groups/controllers/GroupEventsController.php

application/groups/controllers/GroupEventsGaleryController.php

application/groups/controllers/GroupEventsNotesController.php

Is this the right way to do it?. The main problem I have is that in each of these controllers i need access to data of the group and would be repeating code in all controllers. For example in the controller GroupEventsGaleryController and GroupEventsNotesController i need group’s data and event. I dontknow how to do this well.

Please help. Thanks.

  • 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-20T01:23:34+00:00Added an answer on May 20, 2026 at 1:23 am

    You’ll need to pass the IDs via GET anyway, I presume. I’d do it this way:

    modules
      --group
        --controllers
          IndexController.php
          EventController.php
          GalleryController.php
          NoteController.php
        --views
          --scripts
            --index
              index.phtml
              ...
            --event
              index.phtml
              ...
            --gallery
              index.phtml
              ...
            --note
              index.phtml
              ...
    

    (this doesn’t mean your structure isn’t going to work, I just find this clearer).

    Then you can write a custom router that will structure your URLs the way you propose.

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

Sidebar

Related Questions

I'm in the process of planning out a site for a friend, they need
I am in the process of wrapping up a mobile site and I need
On my site I need to request a date/time every page reload. The reason
I am developing a web site and need to see how it will look
I have a Drupal 7 site and need to output a small calendar control
I am working on a site in that site I need to customize the
I have a Publishing Portal site and I need to add some announcements to
I'm deploying a web site and I need to run large TSQL scripts contained
I am creating a multilingual site that will need to support at minimum five
We're creating an ASP.Net MVC site that will need to store 1 million+ pictures,

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.