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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:09:57+00:00 2026-05-25T21:09:57+00:00

I have a website which is built on Codeigniter and I want to create

  • 0

I have a website which is built on Codeigniter and I want to create some pages with information like terms or privacy, their address should be:

http://domain.com/terms
http://domain.com/privacy

My question is: should I create for each page a controller? In CMS for example, if I add a page it has to create a ‘pysical’ page on the server (CMS which is built on Codeigniter)?

  • 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-25T21:09:58+00:00Added an answer on May 25, 2026 at 9:09 pm

    For static pages like a Privacy Policy or Terms of Service page where they don’t really fit under any other controller I usually create a “content” controller that looks something like this:

    class Content extends CI_Controller {
    
        public function privacy_policy()
        {
            $this->load->view('privacy_policy');
        }
    
        public function terms_of_service()
        {
            $this->load->view('terms_of_service');
        }
    
    }
    

    Then I add some routes to remove “content” from the URL:

    $route['privacy-policy']   = 'content/privacy_policy';
    $route['terms-of-service'] = 'content/terms_of_service';
    

    That way you don’t need to create a new controller for each page and you can keep your static pages organized in a single spot.

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

Sidebar

Related Questions

I have a website which uses PHP and HTML pages, I want to create
I have some website which requires a logon and shows sensitive information. The person
I have a website which is built totally in flex. I want to make
I have to build a html website, which will contain about 50+ pages. The
I have a website which fetches information from RSS feeds periodically (well, currently manually,
I have a website project which includes several assemblies which are built separately. One
I have a Website, which is built upon a CMS, written in PHP. And
We've built an AJAX website which uses JQuery UI extensively. we have 30+ homemade
I have a website built in asp.net mvc 3 which uses the repository pattern
I have a website built with MVC, and now I want to build an

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.