CodeIgniter multi-module configuration problems

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.