no message

This commit is contained in:
hellcat 2025-07-13 17:10:53 +08:00
parent e068bc3d54
commit bc79f859a4
3 changed files with 37 additions and 0 deletions

View File

@ -60,6 +60,7 @@ return static function (Slim\App $app): void {
$app->get('/test4', App\Controllers\TestController::class . ':test4'); $app->get('/test4', App\Controllers\TestController::class . ':test4');
$app->get('/test5', App\Controllers\TestController::class . ':test5'); $app->get('/test5', App\Controllers\TestController::class . ':test5');
$app->get('/test6', App\Controllers\TestController::class . ':test6'); $app->get('/test6', App\Controllers\TestController::class . ':test6');
$app->get('/test_mail', App\Controllers\TestController::class . ':test_mail');
// doc // doc
$app->group('/doc', static function (RouteCollectorProxy $group): void { $app->group('/doc', static function (RouteCollectorProxy $group): void {

View File

@ -0,0 +1,26 @@
{include file='header.tpl'}
<body style="background-color:#FFFCFD;">
<div style="text-align: center">
<div border="0" cellpadding="0" cellspacing="0" width="100%"
style="padding-top:30px;table-layout:fixed;background-color:#F5A3A3;" id="bodyTable">
<div align="center" valign="top" style="padding-right:10px;padding-left:10px;" id="bodyCell">
<div border="0" cellpadding="0" cellspacing="0" style="max-width:600px;text-align: center;" width="100%"
class="wrapperTable">
<div align="center" valign="top">
<p>
<image src="https://fuuuu.loc/assets/baba/default_files/img_barbar/_hua.svg" height="300px" width="300px">
</p>
<div border="0" cellpadding="0" cellspacing="0" style="background-color:#FFFFFF; border-radius: 5px;" width="100%"
class="oneColumn">
<div align="center" valign="top"
style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">
<p class="midText">
{$text}
</p>
</div>
</div>
</div>
</div>
{include file='footer.tpl'}

View File

@ -24,6 +24,16 @@ session_start();
final class TestController extends BaseController final class TestController extends BaseController
{ {
public function test_mail(ServerRequest $request, Response $response, array $args)
{
return $response->write(
$this->view()
// ->assign('is_login', $user->isLogin)
// ->assign('taocan', $taocan)
->assign('text', "xxxxxx")
->fetch('email_test/one.tpl')
);
}
public function test5 () public function test5 ()
{ {