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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:16:09+00:00 2026-06-01T03:16:09+00:00

On my website, I am loading the content dynamically from database like this e.g

  • 0

On my website, I am loading the content dynamically from database like this

e.g mysite.com/about-us   

for this, there is an enrtry in database, so it will load the content for ‘about-us’ & print it using “page” controller only.

for this what I have done is, I have added below configuration in routes.php

$route[':any'] = "page";

but lets say if I already have controller named “about-us” and I want to load that & not the one from database, how can I do that?

  • 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-01T03:16:10+00:00Added an answer on June 1, 2026 at 3:16 am

    A smooth solution would be to use the error/missing_page controller and point it in the config/routes.php.

    Then it would automaticly pick all existing controllers first, and then that controller.

    You can also call show_404() if you don’t find a record in the database.

    This allows you to create new controllers without having to point all of them in the route file.

    Read about 404 override here

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

Sidebar

Related Questions

I'm using jQuery address to enable loading specific content from other pages and to
How do I go about getting text content to carryover to a dynamically created
I'd like to enable my game to load content (such as a model, a
I wish to create a mobile optimized web app by loading a website from
What are some tips of loading big image faster. I look at this website:
I am using scrapy tool to scrape content from website, i need help from
I'ld like to present always the latest website content to the user but also
I'm working on a Facebook-like toolbar for my website. There's a part of the
My PHP Apache website starts to load a part of the content, then it
A website in C# and jQuery will read the last post from a Twitter

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.