mysql - thinkphp5 works fine locally on the MAC computer, but after deploying the LINUX server, the model does not exist
大家讲道理
大家讲道理 2017-06-06 09:51:56
0
3
597

[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         资源地址
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
某草草

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

伊谢尔伦

Pay attention to the capitalization issue

大家讲道理

It should be a case issue

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template