Home  >  Article  >  Backend Development  >  thinkphp jump

thinkphp jump

WBOY
WBOYOriginal
2016-08-08 09:25:331284browse

1 $this -> redirect('index',array('type'=>2,'id'=>0)); //Jump directly

2 $this->success('Submission failed, error message: 0001",'Summer/index'); // Jump after prompt, no parameters

4 $this->success( 'Registration successful!',U("Activity/sign",array('id'=>$res))); // Jump after prompt, with parameters

5 $this->error( 'Already registered!',U("Activity/sign",array('id'=>$id))); // Jump after prompt, with parameters

The above introduces thinkphp jump, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

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