Yii1.1_RouteGenerate 代码放在{yii}/protect/commands文件夹下。 依赖于srbac扩展,代码里面有像authitem表里面。 执行: cd {yii}/protect/commands php ./yiic role generate