在ACL中设置模块名称

时间:2014-07-18 15:29:36

标签: acl phalcon

是否可以在' Resourse'?

中定义模块名称

比如我在这里说明的内容:

// Define the "Customers" resource in "Backend" module
$customersResource = new \Phalcon\Acl\Resource("Backend\Customers");

// Add "customers" resource with a couple of operations
$acl->addResource($customersResource, "search");
$acl->addResource($customersResource, array("create", "update"));

0 个答案:

没有答案