Routing controllers in subfolders using CodeIgniter

前端 未结 3 1486
独厮守ぢ
独厮守ぢ 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:44

    You have to be able to differentiate the frontend from the backend somehow. Maybe set a route that forwards any uri with "admin" to the backend, and anything without "admin" to the frontend.

提交回复
热议问题