kishor10d / Admin-Panel-User-Management-using-CodeIgniter

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme
http://cias.codeinsect.com
GNU General Public License v3.0
337 stars 240 forks source link

hi kishor #40

Closed janarth20 closed 6 years ago

janarth20 commented 6 years ago

hi bro. i jst download the admin panel source code. thanks for it.

Jst wana ask. How do I add sub menu for the side menu?

Syedwaheed commented 6 years ago

hi @janarth20 you can use (https://adminlte.io/themes/AdminLTE/index2.html) for your submenu. Thanks

janarth20 commented 6 years ago

@Syedwaheed hi bro. Thanks for the info. Appreciate it alot

Syedwaheed commented 6 years ago

@janarth20 no problem i was doing the same and there was no one to tell me about this. Suddenly i came across the template. Glad to hear that you find it.

janarth20 commented 6 years ago

@Syedwaheed thanks bro. One more thing would like to ask. Hope u dont mind. About validation in adding new user. Msg "Email alredy taken" Actually how does it works? Can u explain me if possible

kishor10d commented 6 years ago

@janarth20 : Code is here in the model application/models/User_model.php.

function checkEmailExists($email, $userId = 0)
    {
        $this->db->select("email");
        $this->db->from("tbl_users");
        $this->db->where("email", $email);   
        $this->db->where("isDeleted", 0);
        if($userId != 0){
            $this->db->where("userId !=", $userId);
        }
        $query = $this->db->get();
        return $query->result();
    }

This code checks that the email is already exists in database or not. Once the record found, it returns Email already taken.

janarth20 commented 6 years ago

Actually my browser cache prob. Now settle. Anyway thanks bro