모듈 클래스에서 내보기로 $newdataa
을로드 할 수 없습니다. 컨트롤러 클래스의 오류를 $newdataa
행에 표시합니다.codeigniter 모듈에서보기 및 컨트롤러로 데이터를로드하는 방법
return true;
가 될 :
이
모듈 클래스$query=$this->db->get("pbinfo");
foreach($query->result() as $rows)
{
$newdataa = array(
'id' =>$rows->id,
'jtitle' =>$rows->jtitle,
'skills' =>$rows->skills,
'email' => $rows->email,
'country' => $rows->country,
'rate' => $rows->rate,
'website' => $rows->website,
'phone' => $rows->phone,
'aboutus' => $rows->aboutus,
);
return true;
}
}
이것은 컨트롤러 클래스 모듈에서 변경할 수
public function services()
{
$this->user_model->showfreelancer();
$this->load->view("services",$newdataa);
}
그래서 오류 메시지가 무엇입니까? 주의 메시지 : 정의되지 않은 변수 : newdataa 파일 이름 : 컨트롤러/Pages.php 줄 번호 : (66) 역 추적 – Will
당신은 당신이 얻을 전체 컨트롤러 클래스 – RanjanaLK
하는 PHP 오류 심각도가 발생 된 오류 메시지를 게시 할 수 있습니다 : 파일 : /Applications/MAMP/htdocs/ci/application/controllers/Pages.php 라인 : 66 기능 : _error_handler 파일 : /Applications/MAMP/htdocs/ci/index.php 라인 : 315 기능 :주의 메시지 : –