1。配置环境配置加速源,安装orm扩展,安装composer,安装驱动,使用composer命令在指定目录下安装Thinkphp6.x;配置composer中文源composerconfig-grepo.packagistcomposerhttps://packagist.phpcomposer.com下载ormcomposerrequiretopthink/think-orminstallcomposerraptinstallcomposerinstallmysqliaptinstallphp-pdophp-mysqli使用composer命令安装thinkphpcomposer在指定目录create-projecttopthink/thinktp6demowill.example。修改env文件为.env文件,配置数据库账号密码,开启调试;root123456studenttrue在命令行使用如下命令开启虚拟服务器,可以配置域名或者本地ip,我个人使用phpthinkrun//localhost:80002。引入UI,直接将包含js和css的bootstrap文件夹复制到项目中的public/static;配置config/view.php,设置静态调用的模板路径;//模板替换输出'tp1_replace_string'=>['__JS__'=>'../static/js','__CSS__'=>'../static/css',],在controller中新建一个测试方法来测试UI引入的正确性。这时候访问页面会报错,提示没有安装驱动。下一步是安装驱动程序。在命令行执行以下命令安装驱动composerrequiretopthink/think-view修改config/view.php文件为'view_suffix'=>'php',新建模板文件index/test.phpbootstrap-theme。min.css导入UI,注意在
