no message
This commit is contained in:
parent
e068bc3d54
commit
bc79f859a4
@ -60,6 +60,7 @@ return static function (Slim\App $app): void {
|
||||
$app->get('/test4', App\Controllers\TestController::class . ':test4');
|
||||
$app->get('/test5', App\Controllers\TestController::class . ':test5');
|
||||
$app->get('/test6', App\Controllers\TestController::class . ':test6');
|
||||
$app->get('/test_mail', App\Controllers\TestController::class . ':test_mail');
|
||||
|
||||
// doc
|
||||
$app->group('/doc', static function (RouteCollectorProxy $group): void {
|
||||
|
||||
26
resources/views/tabler/email_test/one.tpl
Executable file
26
resources/views/tabler/email_test/one.tpl
Executable 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'}
|
||||
@ -24,6 +24,16 @@ session_start();
|
||||
|
||||
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 ()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user