Yii中的页面跳转与传值
2016-11-18 21:56:06
•
阅读
打赏
在同一个Controller中页面跳转
$this->render('view页面',array('参数'=>'值'));
$this->render('news',array('result'=>'123','result1'=>'456'));
url重定向 $this->redirect(array('action方法'));
$this->redirect(array('getnews','id'=>1,,,,));
在不同的Controller中页面跳转
$this->redirect(array('跳转到的controller/跳转到的controller里的action','参数'=>'值',,,,));
$this->redirect(array('user/getuser','id'=>1));
Yii::error("跳转",Yii::app ()->request->hostInfo ."/index.php",3);
相关推荐
深度学习 -- 损失函数
深度残差网络(Deep Residual Networks (ResNets))
深度学习 -- 激活函数
神经网络训练 -- 调整学习速率
生成对抗网络(GAN)改进与发展
生成对抗网络(GAN)优点与缺点
生成对抗网络(GAN)的训练
生成对抗网络(GAN)基本原理
生成模型与判别模型