Welcome Guest, Not a member yet? Register   Sign In
[solved]header view won't display correctly
#1

(This post was last modified: 03-12-2015, 07:45 PM by naminator.)

This is like super easy question. There's a function in my controller which won't display correctly.
The header view will display below table which make characters unreadable due to missing encoding.
Please see code below. Please kindly advice what I missed.

Code:
public function show_registered(){
       $this->load->database();
       $this->load->helper('form');
       $this->load->helper('url');    
       $this->load->library('table');
       $this->load->helper('html');

       $this->load->view('template/header');
       
       $query = $this->db->get('registered');
       $data = array();
       $data[] = array('ลำดับที่','ภาพถ่าย');
       
       foreach($query->result() as $row){
           $image_properties = array(
               'src' => $row->photo,
               'width' => '180',
               'height' => '120',
           );

           $data[] = array($row->id,img($image_properties));
       }
       echo $this->table->generate($data);
       $this->load->view('template/footer');        
   }
Reply


Messages In This Thread
[solved]header view won't display correctly - by naminator - 03-12-2015, 03:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB