Welcome Guest, Not a member yet? Register   Sign In
Problems with creating subfolders in CodeIgniter 3 HMVC
#1
Photo 

I have a project that contains several subfolders, such as:

  1. client (folder name)
     auth (sub folder )
                        login(sub sub folder)
                           model+view+controller

                        signup(sub sub folder )
                           model+view+controller
  1. admin(folder name)
    • signin(sub folder) 
          model+view+controller
I set up my routes like this:
Code:
$route['default_controller'] = "admin/signin/signin";
$route['admin/signin'] = "admin/signin/signin/index";
$route['admin/(:any)'] = "admin/signin/signin/$1";
$route['client/auth'] = "auth/signin/signin";
$route['client/auth'] = "client/auth/signin/signin";
$route['client/auth/(.*)'] = "client/auth/signin/signin/$1";
These routes are not working, which shows CodeIgniter 404 error page.  I have also attached an image of my file structure.           please help to solve this issue.
Reply


Messages In This Thread
Problems with creating subfolders in CodeIgniter 3 HMVC - by surma - 06-06-2018, 01:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB