简体   繁体   English

为什么在Yii Interactive Tool v1.1(基于Yii v1.1.5)中找不到rbac选项

[英]Why I could not find the rbac option in Yii Interactive Tool v1.1 (based on Yii v1.1.5)

I am using Yii Interactive Tool v1.1 (based on Yii v1.1.5) to create my RBAC authorization hierarchy. 我正在使用Yii Interactive Tool v1.1(基于Yii v1.1.5)创建RBAC授权层次结构。 But after I enter the “>> help rbac” I can only saw: 但是输入“ >> help rbac”后,我只能看到:

>> help rbac

 - controller
 - crud
 - form
 - help
 - model
 - module

I could not find the rbac option. 我找不到rbac选项。 Could you tell me why? 你能告诉我为什么吗?

When I used the yii shell tool, my command must include the path of "index.php". 当我使用yii shell工具时,我的命令必须包含“ index.php”的路径。

for example: 例如:

E:\\projects\\yiiroot\\trackstar\\protected>yiic shell ../index.php E:\\ projects \\ yiiroot \\ trackstar \\ protected> yiic shell ../index.php

E:\\projects\\yiiroot\\trackstar\\protected>yiic shell config/main.php ../index.php E:\\ projects \\ yiiroot \\ trackstar \\ protected> yiic shell config / main.php ../index.php

If I only input the "E:\\projects\\yiiroot\\trackstar\\protected>yiic shell". 如果仅输入“ E:\\ projects \\ yiiroot \\ trackstar \\ protected> yiic shell”。

It will return an error such as "... does not exist or is not an entry script file." 它将返回错误,例如“ ...不存在或不是入口脚本文件。”

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

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