Skip to content

Instantly share code, notes, and snippets.

@rohman
Created April 16, 2013 10:21
Show Gist options
  • Save rohman/5394862 to your computer and use it in GitHub Desktop.
Save rohman/5394862 to your computer and use it in GitHub Desktop.
Belajar TypeHead Bootstrap CI
<?php
class Tamu_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
function cariTamu($namaTamu, $limit)
{
return $this->db->select('*')->from('tamu')->like('nama', $namaTamu,'both')->limit($limit)->get();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment