简体   繁体   English

设置cakephp acl数据库

[英]setting up cakephp acl database

I'm trying to set up CakePHP's acl feature, for a bit of experimentation. 我正在尝试设置CakePHP的acl功能,进行一些实验。 The documentation says I can do: 文档说我能做到:

Console\cake acl initdb

http://book.cakephp.org/2.0/en/console-and-shells/acl-shell.html http://book.cakephp.org/2.0/en/console-and-shells/acl-shell.html

Or perhaps: 也许:

cake schema create DbAcl

http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html#defining-permissions-cakephp-s-database-acl http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html#defining-permissions-cakephp-s-database-acl

However they return the same error: 但是它们返回相同的错误:

The chosen schema could not be loaded. Attempted to load:
File: C:\wamp\www\cakeuser\app\Config\Schema\schema.php
Name: DbAcl

I ran these commands from the /app folder. 我从/app文件夹运行这些命令。

What am I doing wrong? 我究竟做错了什么?

或者,您可以在app / Config / Schema /中的mysql文件中手动运行db_acl.sql。

For me work execute the code linke this: c:\\wamp\\www\\cake\\app>cake schema create dbAcl instead of this c:\\wamp\\www\\cake\\app>cake schema create DbAcl 对我来说,执行代码linke: c:\\wamp\\www\\cake\\app>cake schema create dbAcl而不是c:\\wamp\\www\\cake\\app>cake schema create DbAcl

look the dbAcl in my case must to be in lowercase. 看看我的情况下dbAcl必须是小写的。

你应该运行cake schema从应用程序路径创建DbAcl而不是从控制台文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM