Jump.php 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. namespace think\response;
  12. use think\Response;
  13. class Jump extends Response
  14. {
  15. protected $contentType = 'text/html';
  16. /**
  17. * 处理数据
  18. * @access protected
  19. * @param mixed $data 要处理的数据
  20. * @return mixed
  21. * @throws \Exception
  22. */
  23. protected function output($data)
  24. {
  25. $data = $this->app['view']->fetch($this->options['jump_template'], $data);
  26. return $data;
  27. }
  28. }