Does Cakephp support path/to controller?

Source: Internet
Author: User
Does CakePHP support the pathto path? {Code...} what we want to achieve now is to create the admin directory (appcontrollersadmin) under the appcontrollers directory to put all the controllers operated by the Administrator in and separate the front-end and backend. However, I have read many articles that seem to have mentioned that CakePHP does not support path/to path?

Access http: // localhost/admin/home/index Path app/controllers/admin/HomeController. the index method in php accesses http: // localhost/home/index path/app/controllers/HomeController. index Method in php

Now you want to create an admin directory (/app/controllers/admin) under the/app/controllers directory)
All controllers operated by the Administrator are put in and the front-end and backend are separated.
But I have read many articles that seem to say that no matter whether the front-end or the administrator is put in a controller?

Reply content:

Does CakePHP support path/to path?

Access http: // localhost/admin/home/index Path app/controllers/admin/HomeController. the index method in php accesses http: // localhost/home/index path/app/controllers/HomeController. index Method in php

Now you want to create an admin directory (/app/controllers/admin) under the/app/controllers directory)
All controllers operated by the Administrator are put in and the front-end and backend are separated.
But I have read many articles that seem to say that no matter whether the front-end or the administrator is put in a controller?

This function has been implemented in CakePHP 3.0 + and is quite useful. I have already used this framework to have mature projects, and I have also written open-source CMS Based on CakePHP3.0.

Related Article

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.