namespace app\admin\controller;
class Index
{
use \traits\controller\jump;
public function index()
{
return 'HELLow';
}
public function test($name)
{
if($name=='php')
{
$this->success('Jumping','http://www.php.cn');
}
}
}
This is my code. I have checked it several times and found no problem. I just need to use \traits\controller\ jump; you can run it after logging out, otherwise an error will be reported