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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:37:21+00:00 2026-06-12T22:37:21+00:00

I recently started using codeIgniter and I am stuck in a problem. I’ve two

  • 0

I recently started using codeIgniter and I am stuck in a problem.

I’ve two files in my view folder

  1. index.php
  2. profile.php

When I go to the url http://localhost/php/ci/index.php/ it shows my index.php page and everything is fine.

But when I go to http://localhost/php/ci/profile.php/ it says

The requested url was not found on server.

Why is this happening what’s the problem ??

My Controller Files Names Are:

  1. home_control.php
  2. profile_control.php

home_control will interact with index.php and profile_control will interact with profile.php.

  • 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-12T22:37:22+00:00Added an answer on June 12, 2026 at 10:37 pm

    You have a fundamental flaw in your MVC understanding. The index.php file sitting in your document root (that is, your www directory) is actually responsible for getting CodeIgniter started on every request. That is the index.php that you are seeing in the URL bar.

    You are confusing said index.php with the index.php that you fabricated inside of the views folder. Never will you be able to create a file inside of your views folder and be able to immediately access it using the URL bar. You must go through a controller.

    If you access http://localhost/php/ci/index.php/profile_control and controllers/profile_control.php contains::

    <?php
    class Profile_control extends CI_Controller{
        function __construct(){
            parent::__construct();
        }
        function index(){
            $this->load->view('profile')
        }
    }
    

    You will be able to see the contents inside of views/profile.php

    To reduce confusion, it is essential that you read this before going forward.

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

Sidebar

Related Questions

I have recently started using the CodeIgniter framework for my PHP development. I was
Ive recently started using CodeIgniter as I was searching for a very lightweight framework
I recently started using jQuery/AJAX for submitting data to my PHP API. Currently what
I recently started using Riak with PHP. How exactly do I store JSON data?!
I recently started using Eclipse for PHP Development. Please suggest me some HTML WYSIWYG
I recently started using interface builder, the problem i'm facing right now is when
I recently started using the DisplayTag library and I've run into a problem. I'm
I recently started using imagemagick with php and I'm relatively new with both of
I recently started using Emacs for editing. When I edit english-language files (like program
I recently started with the unit testing for my php website made in CodeIgniter

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.