ThinkPHP3.0 solution to invalid path access after grouping

Source: Internet
Author: User
ThinkPHP3.0 is an invalid solution for path access after grouping! After using the group in ThinkPHP3.0, the following solutions cannot be accessed according to the manual path :? Check whether the config. php file exists in the Conf Directory. due to group reasons, the config. php file is often put into various group folders, while the config. php file of the Conf file is ignored .? If there is a public config? The solution to the invalid path access after the ThinkPHP3.0 file is used by the group!

After using the group in ThinkPHP3.0, you cannot access the group according to the manual path:

?

Check whether the config. php file exists in the Conf Directory. for group reasons, the config. php file is usually put in the folders of each group, while the config. php file of the Conf file is ignored.

?

If there is a public config? All the config. php files must be inherited. for example:

?

$ Config = require './config. inc. php ';? // Note the directory structure. the configuration file is under the root directory of the website and is the same as the entry file.

?

After modification, clear the Runtime directory and try again...

?

Manual description structure:

?

?

Home Group: Conf/Home/config. php

Admin group: Conf/Admin/config. php

Public configuration: Conf/config. php --- must exist

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.