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
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"