Fauziutama10

model_kategori.php

Jul 1st, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class Model_kategori extends CI_Model {
  4.     public function all(){
  5.         $hasil = $this->db->get('kategori');
  6.         if($hasil->num_rows() > 0){
  7.             return $hasil->result();
  8.         }else{
  9.             return array();
  10.         }
  11.     }
  12. }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment