<?php
namespace app\admin\controller;
use app\model\Admin;
use think\Controller;
class Login extends Controller
{
public function login()
Received data passed to the model layer Model
$ res = (new admin ())-& gt; login (input ('post.'));
}
Return $ This- & gt; fetch () ;
}
}
namespace app\model;
use think\Loader;
class Admin extends Model{
public function login($data){
halt($data);
}
}
Why not use the helper function model(Admin)->login();
Is there any error report or prompt