fix testdefsite post
This commit is contained in:
parent
04b8c79911
commit
39c9b39edf
@ -15,6 +15,9 @@ class TestDefSite extends BaseController {
|
|||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->db = \Config\Database::connect();
|
$this->db = \Config\Database::connect();
|
||||||
$this->model = new TestDefSiteModel;
|
$this->model = new TestDefSiteModel;
|
||||||
|
$this->rules = [
|
||||||
|
"TestSiteCode" => "required"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user