francis.xia
- francis.xia 回复了话题 yii中怎么添加视频播放器
视频播放,和php没什么关系。 一般是用flash 或 html5 播放器, 自己搜搜jquery的插件,很多的!
当然越新越好了,我用的php5.3, apache2
template属性是字符串,应该不可以执行php代码。
但是有个visibility 或 visible 属性可以实现你想要的- francis.xia 回复了话题 要怎么学习yii框架
用心学!:)
- francis.xia 回复了话题 关于Yii的权限控制
在实际开发中,CRUD 生成 controller 后, 第一件事,我一般是删除filters() 以及所有的rules
开发完成后,设置RBAC.
英语好,底子扎实,也要1个星期吧?必定那么多细节!
5年php经验,一般小项目没必要非要用yii啊!
use compare vlidator
public static function auto_login($email,$pwd) { $identity=new UserIdentity($email,$pwd); $identity->authenticate(); if($identity->errorCode!=UserIdentity::ERROR_NONE) { Yii::app()->user->loginRequired(); } Yii::app()->user->login($identity); }
- francis.xia 回复了话题 怎么样才能注册之后直接登录?
完成注册之后:
$identity=new UserIdentity($user->email,$_POST['RegisterForm']['password']); $identity->authenticate(); Yii::app()->user->login($identity);
- francis.xia 回复了话题 跨数据库联表查询
链表查询,我用过,如果数据量比较大,速度会很慢。还是别用了