thinkphp/library/traits/controllerJump.php

用法: load_trait('controller/Jump'); class index { use \traits\controller\Jump; public function index(){ $this->error(); $this->redirect(); } }

Traits

Jump