Does Cakephp support path/to controller

Source: Internet
Author: User
Does cakephp support path/to path?

访问 http://localhost/admin/home/index 路径 app/controllers/admin/HomeController.php 中的 index方法访问 http://localhost/home/index路径 /app/controllers/HomeController.php 中的index 方法

Now what you want to do is create a new admin directory under the/app/controllers directory (/app/controllers/admin)
Put all the controllers that are operated by the administrator and separate the front-end background.
But read a lot of articles seem to say that regardless of the front end or the administrator is placed in a controller?

Reply content:

Does cakephp support path/to path?

访问 http://localhost/admin/home/index 路径 app/controllers/admin/HomeController.php 中的 index方法访问 http://localhost/home/index路径 /app/controllers/HomeController.php 中的index 方法

Now what you want to do is create a new admin directory under the/app/controllers directory (/app/controllers/admin)
Put all the controllers that are operated by the administrator and separate the front-end background.
But read a lot of articles seem to say that regardless of the front end or the administrator is placed in a controller?

This feature has been implemented in cakephp 3.0+ and is very useful. I have used this framework to have a mature project and also write an open source CakePHP3.0-based CMS.

  • 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.