search

Home  >  Q&A  >  body text

Why does the error Class 'Model\GoodsModel' not found appear?

The calling code is:

function showlist(){

$goods = new \Model\GoodsModel();

var_dump($goods);

$this -> display();


周静洁周静洁1931 days ago1096

reply all(1)I'll reply

  • 像风一样自由

    像风一样自由2019-08-03 16:11:23

    Remove \ in front of Model

    reply
    0
  • Cancelreply