[eluser]OneCorea[/eluser]
Hi, This is a first after hardwork process, 'cause I can't receive activation email of some account.
Anyway.......
I'd like to modify the result dataset object field before sending them to views..
<Model>
Code:
function getList(, ,){
$sql = "..."
$query = $this->db->query($sql);
if($query->num_rows() > 0){
return $query->result();
}
else { return false; }
}
<Views>
Code:
foreach($list_obj as $obj){
echo $obj->subject;
echo $obj->name;
...
}
<Controller>
Code:
$data['list_obj'] = $this->board_model->getList($code, $from_list, $offset);
====>" From Here, object field modification section....."
==>$data['list_obj']->subject = "Re:".subject.".....";// <--- of course it isn't worked, just for example..
$this->load->views('bList', $data);
==========================
Consequently, I'd like to modify the $query->result() object dataset field before they are sent to the views..
Is there a solution to solve my problem in CI?..
From Real Inovice CI!!!!