How to use Minify in Codeigniter 4 - Namespace Issues |
i think it may be your not linking a "namespace" to where classes are using namespace.
Namespace of css.php is "MatthiasMullie\Minify" so you have to use that. the \ is a problem so simply escape that with another backspace. 'MatthiasMullie\\Minify'=>APPPATH.'Libraries/Mathia/src', i prefer to keep my 3rd packages separate, im using PHPMailer: Code: appstarter php mailer is at same level as app; to get it working this is my autoload: Code: public $psr4 = [ then in a controller to use it : Code: use PHPMailer\PHPMailer\PHPMailer; by the way you can use composer to get that : https://packagist.org/packages/matthiasmullie/minify then the autoload feature of composer would do class linking for you automatically |
Messages In This Thread |
How to use Minify in Codeigniter 4 - Namespace Issues - by myo - 10-20-2020, 04:59 AM
RE: How to use Minify in Codeigniter 4 - Namespace Issues - by captain-sensible - 10-20-2020, 05:32 AM
RE: How to use Minify in Codeigniter 4 - Namespace Issues - by captain-sensible - 10-21-2020, 03:30 AM
RE: How to use Minify in Codeigniter 4 - Namespace Issues - by myo - 10-21-2020, 03:58 AM
RE: How to use Minify in Codeigniter 4 - Namespace Issues - by haroldentwist - 09-09-2021, 12:48 AM
RE: How to use Minify in Codeigniter 4 - Namespace Issues - by captain-sensible - 10-21-2020, 05:34 AM
|