Hai im newbie in codeigniter
to all CI master i want to ask how to call a single data sql from controller model to views
here is my controller
public function about(){
$data=array();
$this->load->model('admin_model');
$row = $this->admin_model->about();
$data['description']= $row;
$this->load->view('header_admin',$data);
$this->load->view('about',$data);
$this->load->view('footer_admin');
}
and here is my model
public function about(){
$sql = 'select * from about where id = 1; ';
$query = $this->db->query($sql);
return $query;
}
and this is my view
<body>
<div>
<?php echo $row['description']; ?>
</div>
</body>
all i want is to view my description row table in about table database
thank u for your help ![]()
