潮流资讯类网站建设策划,百度网站怎么做视频教程,深圳做网站建设比较好的公司,网页设计的常用工具有哪些《使用ThinkPHP6开发项目》 - 安装ThinkPHP框架-CSDN博客
《使用ThinkPHP6开发项目》 - 设置项目环境变量-CSDN博客
《使用ThinkPHP6开发项目》 - 项目使用多应用开发-CSDN博客
根据前面的步骤#xff0c;我们现在就可以开发我们的项目开发了#xff0c;根据项目开发的需要…《使用ThinkPHP6开发项目》 - 安装ThinkPHP框架-CSDN博客
《使用ThinkPHP6开发项目》 - 设置项目环境变量-CSDN博客
《使用ThinkPHP6开发项目》 - 项目使用多应用开发-CSDN博客
根据前面的步骤我们现在就可以开发我们的项目开发了根据项目开发的需要我们可以创建我们需要的应用我们可以通过命令创建应用
php think build index
php think build index命令中的index是我们的应用名称可以根据所需自行定义 至此我们就创建成功了 在我们项目的app文件夹中也能看到刚刚创建的index应用。这里我们就可以开始我们的功能开发了
我们这里可以创建一个控制器登录页面
php think make:controller indexPassport --plain
这里我们就创建了一个Passport的控制器命令后面的--plain为生成一个空控制器不加这个命令则会生成几个基本的方法。 php think make:controller indexPassport ?php
declare (strict_types 1);namespace app\index\controller;use think\Request;class Passport
{/*** 显示资源列表** return \think\Response*/public function index(){//}/*** 显示创建资源表单页.** return \think\Response*/public function create(){//}/*** 保存新建的资源** param \think\Request $request* return \think\Response*/public function save(Request $request){//}/*** 显示指定的资源** param int $id* return \think\Response*/public function read($id){//}/*** 显示编辑资源表单页.** param int $id* return \think\Response*/public function edit($id){//}/*** 保存更新的资源** param \think\Request $request* param int $id* return \think\Response*/public function update(Request $request, $id){//}/*** 删除指定资源** param int $id* return \think\Response*/public function delete($id){//}
}创建完成我们就可以在这里写我们要实现的功能了