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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:51:29+00:00 2026-05-20T07:51:29+00:00

Greetings, I’ve encountered a seemingly bizarre issue, and was wondering if anyone is able

  • 0

Greetings,

I’ve encountered a seemingly bizarre issue, and was wondering if anyone is able to shed a light.

I created a simple controller two levels down from the traditional /application/controllers/ directory and I’m seeing a CI-generated 404 when hitting said controller.

To elaborate, my directory structure is as follows:
/ci/application/controllers/dir1/dir2/myfile.php

The file itself has a simple function with an echo statement. When I move said file up one level such that it is located in:
/ci/application/controllers/dir1/myfile.php

It works.

I’ve tried changing the name of the “dir2” directory in the example above, the name of the controller, the names of the functions within the controller — to no avail. I’m able to hit the same php file without going through the Code Igniter framework, and I’m on a Windows machine working normally so I can’t imagine this to be a permissions-related issue.

I’m led to think that CI simply isn’t willing to go into the controllers directory more than one level. Is this possible, or am I missing something?

  • 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-20T07:51:29+00:00Added an answer on May 20, 2026 at 7:51 am

    “Out of the box”, Codeigniter only supports a single level directory structure for Controllers.

    There are ways to extend the default Router class to enable this feature.

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

Sidebar

Related Questions

Greetings Friends, I am trying to overlay the simple 2D game I am developing
Greetings all, Is there any issue in the following logic for allocating 2D array:
Greetings, By using the regular selector, I am able to select the grand parent
Greetings I may have imagined this but does anyone know if Last.fm previously used
Greetings, I have a view based application project where I have created an NSObject
Greetings, In Jmeter's regex component, I am running into an issue when the expression
Greetings I am a jquery newbie and trying to fix an issue which uses
Greetings Everyone. I was wondering how would I go about drawing an ached line
Greetings and salutations, I have two Android apps: one is the server and one
Greetings! I have an issue here that i can't find. I am getting a

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.