Autoload my own library |
Hi, I made a custom library and is stored inside app/Libraries and the name is Mssql.php
it starts like this PHP Code: <?php My autoload.php is like this PHP Code: public $psr4 = [ What am I missing? Thanks!
1. First you need to read the php manual about namespaces. So that you understand what you are doing.
2. You need to read the CI documentation on file autoloading. Autoload.php config is not loading files. "This file defines the namespaces and class maps so the Autoloader can find the files as needed."
READ:
CodeIgniter 4 User Guide - CodeIgniter4 Overview - Autoloading Files Eample: PHP Code: // Namespace => Path What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |