这是一个示例函数Codeigniter 3
:
public function geoJSON()
{
$records = $this->example_model->getAll();
$this->load->view('geojson', ['records'=>$records]);
}
...但它在 Codeigniter 4 中不起作用。为什么?
这是一个示例函数Codeigniter 3
:
public function geoJSON()
{
$records = $this->example_model->getAll();
$this->load->view('geojson', ['records'=>$records]);
}
...但它在 Codeigniter 4 中不起作用。为什么?