安装插件后的基础文件
This commit is contained in:
37
plugin/demo/app/index/controller/Demo.php
Normal file
37
plugin/demo/app/index/controller/Demo.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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> Apache2 License
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\HomeController;
|
||||
|
||||
/**
|
||||
* 插件示例
|
||||
*/
|
||||
class Demo extends HomeController
|
||||
{
|
||||
/**
|
||||
* 会员中心首页模板
|
||||
* @return \support\Response
|
||||
* @throws \Psr\SimpleCache\InvalidArgumentException
|
||||
*/
|
||||
public function index(): \support\Response
|
||||
{
|
||||
return view('/demo/index');
|
||||
}
|
||||
|
||||
public function demo()
|
||||
{
|
||||
return response('demo');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user