下载thinkphp5.0.24压缩为文件夹为(tp5)放在phpstudy中,在网页中输localhost/tp5/public/index.php/index访问成功。
在tp5/application/index建一个文件夹view/index/index.html输入内容;在contrdler/index.php中输入return view (template:‘index’);防问页面。
在contrdler中添加Text.php(首字母要大写)
在view文件夹中添加text文件夹创建text.html
在contrdler中添加Form.php(首字母要大写)
在view文件夹中添加form文件夹创建form.html
2