search

Home  >  Q&A  >  body text

mysql - thinkphp5 works fine locally on the MAC computer, but after deploying the LINUX server, the model does not exist

[0] ClassNotFoundException in Loader.php line 389
Class does not exist: appcommonmodelIndex

        $class = self::parseClass($module, $layer, $name, $appendSuffix);
    }
    if (class_exists($class)) {
        $model = new $class();
    } else {
        $class = str_replace('\' . $module . '\', '\' . $common . '\', $class);
        if (class_exists($class)) {
            $model = new $class();
        } else {
            throw new ClassNotFoundException('class not exists:' . $class, $class);
        }
    }
    self::$instance[$guid] = $model;
    return $model;
}

/**
 * 实例化(分层)控制器 格式:[模块名/]控制器名
 * @param string $name         资源地址
大家讲道理大家讲道理2809 days ago632

reply all(3)I'll reply

  • 某草草

    某草草2017-06-06 09:53:56

    Check if the file name is correct. . You will know if you type out the path and see if the file is there.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-06 09:53:56

    Pay attention to the capitalization issue

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-06 09:53:56

    It should be a case issue

    reply
    0
  • Cancelreply