<?php
//在/think/library/think/Controller.php中
//在基本控制器类外
use traits\controller\Jump;
//在基本控制器内
use Jump;
//在/think/library/traits/controller/Jump.php中
/**
* 用法:
* load_trait('controller/Jump');
* class index
* {
* use \traits\controller\Jump;
* public function index(){
* $this->error();
* $this->redirect();
* }
* }
*/
......
tp5 跳转解析
猜你喜欢
转载自blog.csdn.net/change_any_time/article/details/79979052
今日推荐
周排行