search

Home  >  Q&A  >  body text

Error when importing traits

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


葫芦娃平衡盘葫芦娃平衡盘2480 days ago1166

reply all(1)I'll reply

  • 葫芦娃平衡盘

    葫芦娃平衡盘2018-01-28 21:53:06

    I know why Jump J is not capitalized

    reply
    0
  • Cancelreply