Athentication classes - 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: Athentication classes (/showthread.php?tid=87231) |
Athentication classes - manuel357 - 03-28-2023 Hi, how are you? I will try to explain my problem in english, sorry if not good. I am upgrading codeigniter to version 4.0 from 3.0, and I face the following problem: On codeigniter 3 I have an authentication class: PHP Code: <?php That class was in /application/core/ directory so the classes that I have in my controllers directory extends from Common_Auth_Controller to check if the user is logged or not. But, now in codeigniter 4 I don't have the core directory, I would like to know in which directory I could create the class Common_Auth_Controller Thanks, Manuel RE: Athentication classes - kenjis - 03-28-2023 Any directory if you follow the PSR-4 rules. https://www.php-fig.org/psr/psr-4/ But many people would use app/Controllers/. |