예기치 않은 오류 제공 :코드 점화 모델이 내 컨트롤러
class Test extends CI_Controller {
public function insert1(){
$this->load->model("test1");
$newRow = ["name" => "bob",
"id" => 123 ,
];
$this->test1->insert_entry($newRow);
}
}
에게 내 모델이 코드가 있습니다
class Test1 extends CI_Model {
function insert_entry($array){
$this->db->insert("TEST",$array);
}
}
을 그리고 그것은 나를이 오류 제공 :
Parse error: syntax error, unexpected '}' in C:\wamp\www\ilink-site\application\models\test1.php on line 8