Ask thinkphp RBAC for questions

Source: Internet
Author: User
I would like to ask about thinkphp framework Rights management This piece of things, these two days to see the next thinkphp self-brought instance, have a little understanding, but there is a problem has not been understood, is I want to achieve the effect, but thinkphp think_node table how to store "basic management "What about this node?" Or are you building another table to store the node's grouping information? I see the RBAC Instance database table has a Think_group table, but do not understand the structure between the inside and the Think_node table, Think_group table in the _name, _show the meaning of the field? Can these two fields be removed?

First of all, thank you for your predecessors ' advice, thank you! Please advise


Reply to discussion (solution)

Can someone please explain it for me? Thank you.

I suggest you take a look at the more authoritative documents before you say
thinkphp role-based permissions control
A brief analysis of the use of Thinkphp_2.1_rbac class
An explanation of RBAC database in thinkphp

Think_node and it itself is a one-to-many relationship, that is, the basic management exists among them, links exist among them, but through a parent ID to associate

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