33 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| // +----------------------------------------------------------------------
 | |
| // | ThinkPHP [ WE CAN DO IT JUST THINK ]
 | |
| // +----------------------------------------------------------------------
 | |
| // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
 | |
| // +----------------------------------------------------------------------
 | |
| // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
 | |
| // +----------------------------------------------------------------------
 | |
| // | Author: liu21st <liu21st@gmail.com>
 | |
| // +----------------------------------------------------------------------
 | |
| 
 | |
| namespace think\response;
 | |
| 
 | |
| use think\Response;
 | |
| 
 | |
| class Jump extends Response
 | |
| {
 | |
|     protected $contentType = 'text/html';
 | |
| 
 | |
|     /**
 | |
|      * 处理数据
 | |
|      * @access protected
 | |
|      * @param  mixed $data 要处理的数据
 | |
|      * @return mixed
 | |
|      * @throws \Exception
 | |
|      */
 | |
|     protected function output($data)
 | |
|     {
 | |
|         $data = $this->app['view']->fetch($this->options['jump_template'], $data);
 | |
|         return $data;
 | |
|     }
 | |
| }
 | 
