<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
class Index extends Controller
{
public function index()
{
$time=time();
$this->assign('time',$time);
return $this->fetch('index');
}
}
</!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
<form method="post" action="{url:index/index}">
{$time|date="Y-m-d H:i:s",###}
</form>
</body>
</html>