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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:52:35+00:00 2026-06-10T10:52:35+00:00

I am using CI for my web-site. While programming CMS for the same I

  • 0

I am using CI for my web-site. While programming CMS for the same I faced no problem but when I am programming the same for user-end I am getting error as:
“404 Page Not Found
The page you requested was not found.”
What am i doing wrong?? Any help/suggestions is warmly welcome.Thank you.

In Controller(model.phpl):

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Model extends CI_Controller {
    function __construct()
        {
            parent::__construct();
            $this->load->model('user_model');
            $this->load->model('common'); 
            $this->load->model('home_model');
            $this->load->model('page_model');
    }

        function _remap($method , $params = array())
        {
            $this->menu = $this->common->createMenuArr();
            $this->index();
        }
        function index()
        {
            $data['sliderArr'] = $this->user_model->sliders();
            $this->load->view('index', $data);
        }

}

In Model(user_model.php):

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class User_model extends CI_Model{
    function __construct()
        {
            parent::__construct();
            //$this->load->database(); 
    }
       function sliders()
        {
            $query = $this->db->query("SELECT slider FROM tbl_sliders ORDER BY slider_id DESC")->result_array();
            return $query;
        }

}

and finally in view(index.php):

<div id="slideContainer">
            <div id="slideShim">
                            <?php
                                if(!empty($sliderArr))
                                {
                                    foreach($sliderArr as $slider)
                                    { ?>
                                        <a href="#"><img src="<?php echo base_url();?>images/sliders/<?php echo $slider['slider'];?>"</a>
                                   <?php }
                                }
                            ?>


        </div>
    </div>
  • 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-10T10:52:37+00:00Added an answer on June 10, 2026 at 10:52 am

    Go to Application -> Config -> Routes.

    And Set $route['default_controller'] = "index"; //whatever your controller name is on which you want your application to route by default

    Hope this helps.

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

Sidebar

Related Questions

I am working on re-writing an existing web site using Node.js with Express. Front-end
I am developing web site using jQuery and other tech. I have problem in
I have been using the 'Web Site Administration Tool' that you can bring up
we are using a web service for a web site to communicate with an
I'm developing a Web Site using ASP.NET MVC 3, Nowadays I need to encrypt
I'm configuring a web site using PowerShell and I want to set the default
After seeing tons of web site using modal window with a nice expansion animation
I am scraping data from web site using my java application and want to
I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The
I've just recently started to build a web site using ASP.NET - MVC 4,

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.