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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:54:45+00:00 2026-06-09T17:54:45+00:00

For Security reasons as mentioned here http://codeigniter.com/user_guide/installation/index.html I have placed the system and application

  • 0

For Security reasons as mentioned here http://codeigniter.com/user_guide/installation/index.html I have placed the system and application folders in another folder called OSW_appnsys, which is above the web root folder. Now I have a controller class called ‘Pages’ and a ‘View’ function in it in the following directory.

C:\wamp\www\OSW_appnsys\application\controllers

Now when I am calling the ‘View’ method of the controller ‘Pages’ from another view file called ‘header.php’ I am getting the 404 error like this

The requested URL /CodeIgniter_2.1.2/pages/view/products was not found on this server.

where product is the URI.

And I am calling this way:

<a class="mainmenu" href="<?php echo base_url('pages/view/products')?>">Products</a>

Any help will be highly appreciated. Ty

  • 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-09T17:54:47+00:00Added an answer on June 9, 2026 at 5:54 pm

    You don’t link to a view, you link to the name of a controller. If your controller is named ‘Pages’, you have to link to:

    <a class="mainmenu" href="<?php echo base_url('pages/controllers/products')?>">Products</a>
    

    Assuming that you have placed your controllers in a ‘pages/controllers/’ folder. In the controller named ‘pages’ you load the view (a file named products_view.php or something, which is in your views folder) like so:

    $this->load->view('products_view.php');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So for security reasons, I want to disallow http://www.domain.com/directory/ but allow that physical directory
For security reasons (I'm a developer) I do not have command line access to
There are many security reasons why one would want to drop an HTTP connection
I have some default values for testing my code, but for security reasons those
We have audit columns set by triggers. For obscure security reasons predating my tenure
Due to security reasons our legacy application is split into 2 web applications, one
I have a mysql shell but for security reasons I cannot run the mysqldump
I have recently noticed that stack overflow for security reasons does not allow framing.
I have recently noticed that stack overflow for security reasons does not allow framing.
I get security exception when using System.Net.WebClient to do HTTP requests, which is due

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.