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
334 stars 244 forks source link

Need Special Calling for User #87

Closed 3vluzi closed 2 years ago

3vluzi commented 3 years ago

Hi, thanks for your amazing work. I am new to CI, and I want to know more about How to call any simple function for example: Call who is login aka display username who is currently login and the level of that user. and then place it anywhere.

In my project i want to create attendance system that call userlogin to be recorded on db.

thanks.

3vluzi commented 2 years ago

Oh, i`ve tried and this work

//On my_helper.php

function sedanglogin() { $pdo = &get_instance(); $pdo->load->library('session'); $sesiNYA = $pdo->session; return $sesiNYA; }

////anywhere $loggedin = sedanglogin();

  foreach ($loggedin as $s) {
    $useridnya = $s['userId'];
    $rolenya = $s['role'];
    $roleteksnya = $s['roleText'];
    $namanya = $s['name'];
    $loginterakhir = $s['lastLogin'];

}

//echo $namanya and so on

kishor10d commented 2 years ago

@3vluzi : If you have special requirements then please do not create issues. We can connect in other ways.

3vluzi commented 2 years ago

oh ok sir. sorry for that, i am new to git

On Fri, 9 Jul 2021, 00:06 Kishor Mali, @.***> wrote:

@3vluzi https://github.com/3vluzi : If you have special requirements then please do not create issues. We can connect in other ways.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kishor10d/Admin-Panel-User-Management-using-CodeIgniter/issues/87#issuecomment-876602528, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDNRVB7WMNK5CJIAARUSV3TWXLKBANCNFSM47VYSVNQ .