新建结算控制器
/apps/index/controller/account.php
~~~
<?php
namespace app\index\controller;
use app\index\model\Account as AcctModel;
class Account extends Controller
{
public function index($ap=0)
{
}
}
~~~
后面会逐步用到其他模型的内容,补充代码如下:
~~~
use app\index\model\User as UserModel;
use app\index\model\Order as OrderModel;
use app\index\model\Template as TplModel;
use think\Controller;
use think\Request;
use think\Db;
~~~