I was having a go at codeigniter, but the system outputted this:
- a bunch of chinese-looking characters.琼扡敬戠牯敤㵲〢•散汬慰摤湩㵧㐢•散汬灳捡湩㵧〢㸢㰊牴ਾ琼㹨慎敭⼼桴㰾桴䌾汯牯⼼桴㰾桴匾穩㱥琯㹨⼼牴ਾ琼㹲㰊摴䘾敲㱤琯㹤琼㹤求敵⼼摴㰾摴匾慭汬⼼摴㰾琯㹲㰊牴ਾ琼㹤慍祲⼼摴㰾摴刾摥⼼摴㰾摴䰾牡敧⼼摴㰾琯㹲㰊牴ਾ琼㹤潊湨⼼摴㰾摴䜾敲湥⼼摴㰾摴䴾摥畩㱭琯㹤⼼牴ਾ⼼慴汢㹥
This is the code of the controller I’m using:
<?php
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
$this->load->library('table');
}
function index()
{
$data = array(
array('Name', 'Color', 'Size'),
array('Fred', 'Blue', 'Small'),
array('Mary', 'Red', 'Large'),
array('John', 'Green', 'Medium')
);
echo $this->table->generate($data);
}
}
?>
