朱老师,解压您的课件文件到项目目录,运行index.php就出错了,数据库名称已经修改为myblog了。麻烦您看看是什么问题,谢谢!
Notice: Undefined variable: catList in E:\MyStudy\Php\myblog\public\inc\header_inc.php on line 55
Warning: Invalid argument supplied for foreach() in E:\MyStudy\Php\myblog\public\inc\header_inc.php on line 55
Fatal error: Uncaught Error: Call to undefined function auto_load_tpl() in E:\MyStudy\Php\myblog\index.php:5 Stack trace: #0 {main} thrown in E:\MyStudy\Php\myblog\index.php on line 5
根据提示检查对应的代码中的行数, 对于未定义的变量,检测是不是需要先加载一些文档
调用了未定义函数,你自己检查一下代码