insert页面的代码
<?php
namespace app\index\controller;
use think\Controller;
use think\View;
class Insert
{
public function insert()
{
echo "这是一个insert页面";
return view('insert',[
'email' => '1',
'user' => 'aaa'
]);
}
}
<?php
index.php的代码
namespace app\index\controller;
use think\Controller;
use think\Db;
class Index
{
public function index()
{
return view('insert');
}
}
?>
SilvesterLi