Welcome Guest, Not a member yet? Register   Sign In
How to use Minify in Codeigniter 4 - Namespace Issues
#1
Star 
(This post was last modified: 10-20-2020, 05:03 AM by myo.)

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.
Reply


Messages In This Thread
How to use Minify in Codeigniter 4 - Namespace Issues - by myo - 10-20-2020, 04:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB