An internal error is reported when an error occurs when configuring yii2rbac.

Source: Internet
Author: User
An error is reported when rbac is configured for yii2. configure www according to the method provided by this address. manks. topyii2_fra... when configured to main. an error is reported for the php urlManager item, as long as {code...} is set ...} an error is reported here. what is the problem?

An error is reported when configuring rbac for yii2. configure it according to the method provided by this address.
Http://www.manks.top/yii2_fra...

An error is reported when the urlManager item configured to main. php is set.

"UrlManager" => [// 'class' => 'yii \ rbac \ dbmanager', // Remember to use single quotation marks instead of double quotation marks],

An error is reported here.

What is the situation?

Reply content:

An error is reported when configuring rbac for yii2. configure it according to the method provided by this address.
Http://www.manks.top/yii2_fra...

An error is reported when the urlManager item configured to main. php is set.

"UrlManager" => [// 'class' => 'yii \ rbac \ dbmanager', // Remember to use single quotation marks instead of double quotation marks],

An error is reported here.

What is the situation?

// Add the authManager component to the components array, which can be PhpManager or DbManager,

// PhpManager stores the permission relationship in the file. here, DbManager is used to save the permission relationship in the database. "authManager" => ["class" => 'yii \ rbac \ dbmanager', // Remember to use single quotes instead of double quotes "defaultRoles" => ["guest"],], authManager

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.