| 123456789101112131415161718192021222324252627282930 |
- <?php
- declare(strict_types=1);
- namespace App\Controllers;
- use App\Services\Analytics;
- use Psr\Http\Message\ResponseInterface;
- use Slim\Http\Response;
- use Slim\Http\ServerRequest;
- /*
- * Admin Controller
- */
- final class AdminController extends BaseController
- {
- /**
- * 后台首页
- *
- * @noinspection PhpUnhandledExceptionInspection
- */
- public function index(ServerRequest $request, Response $response, array $args): Response|ResponseInterface
- {
- return $response->write(
- $this->view()
- ->assign('sts', new Analytics())
- ->fetch('admin/index.tpl')
- );
- }
- }
|