I want to use CodeIgniter to develop a project. The front and backend modules are independent of each other. Two entry files are created: home. php and admin. php, which corresponds to the foreground and background respectively. Two application directories are also created in the application: admin and home, but I am accessing localhostadmin. php time... I want to use CodeIgniter to develop a project. The front and backend modules are mutually independent;
Two portal files are created: home. php and admin. php, which correspond to the frontend and backend respectively;
Two application directories are also created in application: admin and home.
However, when I access localhost/admin. php, the Error 404 is reported. I don't know why. Please advise me.
Reply content:
I want to use CodeIgniter to develop a project. The front and backend modules are mutually independent;
Two portal files are created: home. php and admin. php, which correspond to the frontend and backend respectively;
Two application directories are also created in application: admin and home.
However, when I access localhost/admin. php, the Error 404 is reported. I don't know why. Please advise me.
Modify parameters in admin. php
$ Routing ['directory'] = 'admin'
Create an admin file in controllers
Check config/routes. php
$ Route ['default _ controller'] = 'Welcome ';
Create a Welcome. php file in controllers/admin.
You can ~
This is my directory. Modify system_path and application_folder in index. php.