吴笛
谢谢 1楼 2楼的回答。非常精彩
- 吴笛 回答了问题 文章内容页在进行分页缓存下,如何统计浏览次数
我自己给自己回答
public function beforeAction($action){
if($action->id=='view'){
.....
}
}
- 吴笛 回答了问题 render 传入字符串
yii2.0 render() 本来就是直接返回渲染的结果。
默认代码是return $this->render('xx',[]);
如果你要返回结果,赋予一个变量就行了
$html = $this->render('xx',[]);
.....
变量$html就是你要返回的结果
只能用 new query()了
- 吴笛 收藏了扩展Yii1 的百度编辑器 ueditor 扩展