Routing controllers in subfolders using CodeIgniter

前端 未结 3 1504
独厮守ぢ
独厮守ぢ 2020-11-29 09:55

since i want to separate the frontend and backend of the system. i have created 2 folders inside controllers as frontend and backend

Below is the structure of my con

3条回答
  •  余生分开走
    2020-11-29 10:41

    For Front-End you can add this in routes.php:

    $this->set_directory( "frontend" );
    

    so in browser URL, there is no need to include "frontend"

提交回复
热议问题