THINKCMF module backstage without logging in, you can enter

Source: Internet
Author: User
I studied THINKCMF for the first time last night. Create a blog module against the manual, in the background when setting up the blog module status. The problem is as follows:

    1. As long as the browser login, even if the first page is not logged in, still can go into the application module backstage (Blog/indexadmincontroller), see the Controller index method echo content. How is this problem broken?

    2. After changing the browser to enter the background path of the module can enter the login interface, but this background is not the module of the background controller (indexadmin), but the admin module of the public controller login method, this is what back, is not meant to be shared in the background? As long as a place to publish articles, the whole network universal?

    3. I found that through the module jump to the admin login system, again through the module path (indexadminController.class.php) into the controller echo into the content, rather than into the system backstage, since this is the case, what is the use? Is it possible to use your own backstage in the Indexadmin controller display ()?

Reply content:

I studied THINKCMF for the first time last night. Create a blog module against the manual, in the background when setting up the blog module status. The problem is as follows:

    1. As long as the browser login, even if the first page is not logged in, still can go into the application module backstage (Blog/indexadmincontroller), see the Controller index method echo content. How is this problem broken?

    2. After changing the browser to enter the background path of the module can enter the login interface, but this background is not the module of the background controller (indexadmin), but the admin module of the public controller login method, this is what back, is not meant to be shared in the background? As long as a place to publish articles, the whole network universal?

    3. I found that through the module jump to the admin login system, again through the module path (indexadminController.class.php) into the controller echo into the content, rather than into the system backstage, since this is the case, what is the use? Is it possible to use your own backstage in the Indexadmin controller display ()?

1, you can enter without logging in, you may not be in the controller to determine the login.
2, output echo content, you may not have created the corresponding view.

used the CMF.

1.你的模块需要继承CMF自己的控制器,他在控制器做了一些校验处理。2.后台肯定是龚用的,只是权限不同。
  • 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.