Can session autoload? |
Unfortunately what loved a Codeigniter earlier now for was lost - documentation very bad
I create new project on CI 4 How i can autoload session app/Config/Autoload.php Code: $psr4 = [ Help
I don't use BaseController, i wont load session library in autoload, construction $session = \Config\Services:ession($config) - not work in app/Config/Autoload.php
The BaseController is intended to be the mechanism for providing the equivalent of autoloading from CI3 ... https://codeigniter4.github.io/userguide...oller.html
Your first post above is trying to create a Sessions namespace, which is not provided for in the framework. CI4's app/Config/Autoload is meant to tell the PHP class loader where to find source code, and not to preload components for a request. |
Welcome Guest, Not a member yet? Register Sign In |