谁还不是小可爱
![{JV%Z8SB0X30BR]R~$YZ%J1.png](/uploads/images/201705/16090017414_thumb.png "{JV%Z8SB0X30BR]R~$YZ%J1.png")
貌似需要引入什么类才可以使用
可以的,第二个参数就是咯
/** * @param string $view the view name. * @param array $params the parameters (name-value pairs) that should be made available in the view.These * parameters will not be available in the layout. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); }
@xczizz 胡说这个是id放到视图上去了 但是url上并灭有 www.baidu.com?id=1 并没有后面的id=1
- 谁还不是小可爱 赞了回答
可以的,第二个参数就是咯
/** * @param string $view the view name. * @param array $params the parameters (name-value pairs) that should be made available in the view.These * parameters will not be available in the layout. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); }
看看这个!不行在问
http://www.yiichina.com/tutorial/89我就是使用了场景才导致这个问题的,我修改的时候肯定也是需要使用unique这个唯一验证的,所以也不方便去掉,可是不去掉的话那就还是会进行唯一验证。可是事实确实是没有把自己排除在外,而是直接验证了所有。
- 谁还不是小可爱 回答了问题 composer速度极慢的问题
翻墙吧,不然你可能项目都部署不出来
- 谁还不是小可爱 2017-05-09 已签到连续签到1天,获得了5个金钱
- 谁还不是小可爱 2017-04-26 已签到连续签到1天,获得了5个金钱
- 谁还不是小可爱 回复了话题 Yii Framework视频教程第二讲
为什么我把我的sql数据库导进去以后是只有一个表呢? 是我导入错了数据库吗?
- 谁还不是小可爱 回复了话题 Yii Framework视频教程第一讲
嘿嘿 大家好