0
我嘗試了這段代碼,並不斷收到此錯誤 函數來創建(){笨捲曲錯誤
$post = array();
//get all the data from the form into an array
$post = array(
'name' => $this->input->post('name'),
'abbrev' => $this->input->post('abbrev'),
'long_name' => $this->input->post('long_name'),
'long_abbrev' => $this->input->post('long_abbrev'),
'url' => $this->input->post('url'),
'description' => $this->input->post('description')
);
//encode the data and set it as output to push to api
$json_data=json_encode($post);
$this->curl->post('http://localhost:8888/api/colleges', $json_data);
這是錯誤我得到
嚴重性:注意
消息:未定義的財產:學院:: $捲曲
文件名:controllers/colleges.php