张迪
- 张迪 回复了话题 打开首页的时候怎么默认选中登陆标签
我记得 CHtml::beginForm 里面好像有这一项
- 张迪 回复了话题 基于Yii的cms系统
我现在做了一个 可是不是根据用户权限的
还在开发中。。。 - 张迪 回复了话题 关于CSS的两个问题
*.open 是所有 css 类 为 open 的标签
> 表示 直接关系
例如<div class='parent'> <div class='child'> <div class='child'> </div> </div> </div>
.parent>.child 只对第一个 child 起作用
- 张迪 回复了话题 图片批量上传, 求助, 大侠们
你可以试一下 web.widgets 下面的 CMultiFileUpload 扩展
- 张迪 回复了话题 YII如何实现弹出框啊
布老虎厉害,山中霸王
- 张迪 回复了话题 权限检查错误,checkaccess
在你的 test 里面最后加上
$auth->save(); - 张迪 回复了话题 权限检查错误,checkaccess
你给当前用户赋权限了吗?
- 张迪 回复了话题 权限检查错误,checkaccess
Controller 中
/** * @return array action filters */ public function filters() { return array( 'accessControl', // perform access control for CRUD operations ); } /** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array( array('allow', // allow all users to perform 'index' and 'view' actions 'actions'=>array('list'), 'users'=>array('*') ), array('deny', // deny all users 'users'=>array('*'), ), ); }
- 张迪 回复了话题 权限检查错误,checkaccess
accessrules 里面添加list action的权限了吗?
- 张迪 回复了话题 比较辣手的shell生成问题,碰到的过来看看
pdo打开了吗?
先执行model 在执行crud