问题:
无法访问或打开文件,无法打开目录
Fatal error: require(): Failed opening required ‘/Users/liangyuji/Desktop/workspace/www/tp5/thinkphp/base.php’ (include_path=’.:/php/includes’) in /Users/liangyuji/Desktop/workspace/www/tp5/think on line 16
Warning: require(/Users/liangyuji/Desktop/workspace/www/tp5/thinkphp/base.php): failed to open stream: No such file or directory in /Users/liangyuji/Desktop/workspace/www/tp5/think on line 16
原因:
没有安装依赖,框架目录结构不完整
方案:
安装核心的框架
1.进入项目目录下克隆核心架构thinkphp到目录下
% git clone https://github.com/top-think/framework thinkphp
- 采用composer
% composer update topthink/framework