Fatal error: Class 'think\Container' not found
核心框架倉庫不是5.1版本的分支
cd thinkphp git checkout 5.1
1.安裝ThinkPHP5的單元測試擴展 composer require topthink/think-testing=2.0.* 2.安裝完成後,會在應用根目錄下面增加tests目錄和phpunit.xml文件。 3.命令行下面
1、開啓SMTP服務 qq郵箱開啓SMTP 2、安裝phpmailer composer require phpmailer/phpmailer 3、發送郵件函數 use PHPMailer\PHPMailer\PHPMailer
修改public下的.htaccess文件,改爲 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteC