Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Model_kategori extends CI_Model {
- public function all(){
- $hasil = $this->db->get('kategori');
- if($hasil->num_rows() > 0){
- return $hasil->result();
- }else{
- return array();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment