之前想学习php代码审计,但是没有坚持下去,记得当时看到了很多CMS框架采用MVC架构,就嘎然而止了。
为了深入学习下框架,一边看着thinkphp官方文档,一边写个简单的登陆注册页面以加深理解。
官网提供了好几个文档,发现这个最简单易懂:https://www.kancloud.cn/thinkphp/thinkphp5_quickstart/147278
前端用bootstrap简单拼凑了下。
我使用的是wamp集成环境,http.conf中设置下public目录为公共目录:
<VirtualHost *:80> DocumentRoot "C:\wamp\www\public" ServerName localhost </VirtualHost>
后台为 /admin
web目录下载地址:https://files.cnblogs.com/files/b1gstar/www20200128.rar
mysql数据库下载地址:https://files.cnblogs.com/files/b1gstar/thinkphp_sql.rar