CodeIgniterの履歴

速さが売りのPHPフレームワーク。
http://codeigniter.jp/user_guide_ja/

models/hoge_model.php

    function fuga($key) {
        $this->db->where('id', $key);
        $query = $this->db->get('tbl_name');
        return $query->row();
    }

controllers/hoge.php

public function index($key) {
  $hoge = $this->Hoge_model->get_user($key);
  $data['hoge'] = $hoge;
  $this->load->view('hoge/index.php', $data);
}

views/hoges/index.php

<?=$hoge->key?>