Files
swiftadmin/app/index/controller/Index.php

44 lines
1.5 KiB
PHP
Raw Normal View History

2022-08-19 19:48:37 +08:00
<?php
declare (strict_types=1);
// +----------------------------------------------------------------------
// | swiftAdmin 极速开发框架 [基于WebMan开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2030 http://www.swiftadmin.net
// +----------------------------------------------------------------------
// | swiftAdmin.net High Speed Development Framework
// +----------------------------------------------------------------------
// | Author: meystack <coolsec@foxmail.com> Apache 2.0 License
// +----------------------------------------------------------------------
namespace app\index\controller;
use app\HomeController;
use support\Response;
2022-11-28 19:11:12 +08:00
use Psr\SimpleCache\InvalidArgumentException;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
2022-08-19 19:48:37 +08:00
class Index extends HomeController
{
/**
* 前端首页
* @return Response
* @throws InvalidArgumentException
2022-11-28 19:11:12 +08:00
* @throws DataNotFoundException
* @throws DbException
* @throws ModelNotFoundException
2022-08-19 19:48:37 +08:00
*/
2022-11-28 19:11:12 +08:00
public function index(): Response
2022-08-19 19:48:37 +08:00
{
2023-04-25 20:11:49 +08:00
$data = [
'欢迎使用swiftAdmin极速开发框架',
__DIR__.'\Index.php 正在使用halt函数输出到浏览器',
'请在app\index\controller\Index.php中删除halt函数',
];
halt($data);
2022-08-19 19:48:37 +08:00
return $this->view('index/index', ['name' => 'meystack']);
}
}