Yii Framework Forum: [ASK] Cara membuat login multiuser - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[ASK] Cara membuat login multiuser bagaimana cara membuat login multiuser Rate Topic: -----

#1 User is offline   rudinsileo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 21-December 14

Posted 21 December 2014 - 11:39 PM

Mau tanya, sya ingin membuat login multiuser perpustakaan. login untuk anggota dan petugas. di tabel anggota level ada guru,siswa dan karyawan. dan tabel petugas hanya login biasa.

bagaimana cara membuat login multiuser, sya mohon panduannya dari awal.

Terima kasih.
0

#2 User is offline   Rohit Suthar 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 228
  • Joined: 12-May 14
  • Location:Mumbai, India

Posted 22 December 2014 - 12:54 AM

View Postrudinsileo, on 21 December 2014 - 11:39 PM, said:

Mau tanya, sya ingin membuat login multiuser perpustakaan. login untuk anggota dan petugas. di tabel anggota level ada guru,siswa dan karyawan. dan tabel petugas hanya login biasa.

bagaimana cara membuat login multiuser, sya mohon panduannya dari awal.

Terima kasih.



You do easily, just follow this wiki - http://www.yiiframew...authentication/


Also you can identify through user type, so just you need to add usertype field in your login table.

eg. id, username, password, usertype

so just define user type like -
0 -> Admin, 1 -> Teacher, 2 -> Student, 3 -> Employee
Thanks & regards,

ROHIT SUTHAR
Mumbai(India)

Follow me - @rohisuthar

www.yiiframework.us
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users