Please help. I want to create print function with Codeigniter 4 using mike42/escpos
But the class not found.
This is error message
This is my Folder directory
This is my Autoload file
This is my controller file
And this is my printer configuration
Help me, please. Thank you !
I want to create POS application with direct print using mike42/escpos
The
CapabilityProfileclass' full name isMike42\Escpos\CapabilityProfile(namespace + classname in theCapabilityProfile.phpfile).'Escpos' => APPPATH . 'ThirdParty/Mike42/Escpos'tells the autoloader to look for classes which' full name starts withEscposin theThirdParty/Mike42/Escposfolder, but there are no classes which' full name starts withEscposin that folder, they all start withMike42\Escpos. That is why it can't find the class when you try touse Escpos\CapabilityProfile;.You need to change the array in your
Autoload.phpfile to:And the use statements in your controller to: