Home  >  Article  >  PHP Framework  >  How to jump to the page in yii framework

How to jump to the page in yii framework

王林
王林Original
2020-02-26 15:29:172765browse

How to jump to the page in yii framework

1. Page jump in the same Controller

$this->render('view页面',array('参数'=>'值'));
$this->render('news',array('result'=>'123','result1'=>'456'));
url重定向   $this->redirect(array('action方法'));
$this->redirect(array('getnews','id'=>1,,,,));

Related tutorial recommendations: yii framework

2. Page jumps in different Controllers

$this->redirect(array('跳转到的controller/跳转到的controller里的action','参数'=>'值',,,,));
$this->redirect(array('user/getuser','id'=>1));

For more programming-related content, please visit the Programming Introduction column on the php Chinese website!

The above is the detailed content of How to jump to the page in yii framework. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn