我會更新的笨,但我發現一個問題,請大家幫我在我的代碼一個PHP錯誤iginiter
我hacve控制器
public function edit($id_user = 1)
{
$this->load->model('Model_reporter');
$data['$reporterl'] = $this->model_reporter->getreporter($id_user);
$data['content'] = 'reporter/reporter_edit';
$data['judul'] = 'Reporter';
$data['Sub_judul'] = 'Reporter';
$this->load->view('admin/admin',$data);
}
在我的模型
public function edit($id_user = 1)
{
$this->load->model('Model_reporter');
$data['$reporterl'] = $this->model_reporter->getreporter($id_user);
$data['content'] = 'reporter/reporter_edit';
$data['judul'] = 'Reporter';
$data['Sub_judul'] = 'Reporter';
$this->load->view('admin/admin',$data);
}
但我有鑑於問題 「消息:未定義變量:reporterl」
<?php
foreach($reporterl as $keys){
?>
<h4 class="mb">Penilaian Berita</h4>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Nama Lengkap</label>
<div class="col-sm-4">
請幫我