can't access the controller function(s) in code igniter

codeigniter, php

Solution

Codeigniter only supports a single level directory structure for Controllers.

Try this link below for Multi Level Subfolder Controller in CodeIgniter :

Multi Level Subfolder Controller in CodeIgniter

Problem

hi my folder sturcture is like this ``` controllers/user/registration/register.php ``` Inside the register.php controller there is let say for test index function saying 'hello world'.But i cant access the folder index through browser. My base_url is ``` $config['base_url'] = 'http://localhost/new/'; ``` But while i write ``` localhost/new/index.php/user/registration/register/index ``` I got an error ``` The page you requested was not found. ``` what is weird is, I can access the controller fxn of user folder but cant access the controller fxn inside registration folder .And for default controller i have 'home.php' ``` $route['default_controller'] = "home"; $route['404_override'] = ''; ``` I just want to access the controller/user/registration/register/index fxn which says 'hello world' but it says an error-'The page you requested was not found'. Thanks

Original source