How to use Minify in Codeigniter 4 - Namespace Issues |
Hi,
I am trying to use matthiasmullie/minify in Codeigniter 4. But so far I am getting errors due to wrong namespacing. Following is what I did so far: I copied whole unzipped folder in Library: Libraries/Mathia I added following in Config/Autoload.php PHP Code: 'MatthiasMullie' => APPPATH . 'Libraries/Mathia/src', In a controller I used following code: PHP Code: use MatthiasMullie\Minify; Then I used following code to use it but I got errors, file not found PHP Code: $minifier = new Minify\CSS(); Kindly advise how to use it correctly. Regards Note: I do not want to use composer, kindly advise how to manually integrate Minify in Codeigniter 4. |
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
|