CodeIgniter Forums
Controller in Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Controller in Library (/showthread.php?tid=81901)

Pages: 1 2


Controller in Library - tassman - 05-17-2022

Can I use controller in Library in CI4?


RE: Controller in Library - datamweb - 05-18-2022

Hello my friend,
Is it possible to explain why you intend to use the controller in the library?


RE: Controller in Library - tassman - 05-18-2022

Of course. I need to do some universal methods for login system. ex. get id of current login user or group level for him.


RE: Controller in Library - kenjis - 05-18-2022

Why don't you create a library for login system, and use it in a controller?


RE: Controller in Library - datamweb - 05-19-2022

(05-18-2022, 10:35 AM)tassman Wrote: Of course. I need to do some universal methods for login system. ex. get id of current login user or group level for him.

Here are two packages to implement the membership and login system.
Use Ion-Auth if you are a beginner and if not beginner use myth-auth .
If you want to code yourself, use the method described by Kenjis.


RE: Controller in Library - kenjis - 05-19-2022

CodeIgniter Shield will come soon.
https://github.com/codeigniter4/shield/


RE: Controller in Library - tassman - 05-19-2022

Wooow. Whats the date od release?


RE: Controller in Library - includebeer - 05-19-2022

(05-19-2022, 12:48 AM)kenjis Wrote: CodeIgniter Shield will come soon.
https://github.com/codeigniter4/shield/

What is the difference between this and Myth-Auth?


RE: Controller in Library - kenjis - 05-19-2022

See
Shield - an Auth library | Lonnie Ezell on Patreon
https://www.patreon.com/posts/shield-auth-64914665


RE: Controller in Library - InsiteFX - 05-19-2022

Isn't it a waste of time when the web is moving over to FIDO Passwordless Authiencation?

SEE:

What is FIDO? - FIDO Authentication is the Answer