<?php
class User_model extends CI_Model {

    public function get_by_username($username){
        return $this->db->get_where('tb_user', ['username' => $username, 'status_aktif' => 1])->row();
    }
}
