First of all You need to deploy minify to libraries directory:
Then You can load library using standard CodeIgniter loader:
Then, in VIEW in page header You can use this commands:
$this->minify->css_file = 's.min.css'; $this->minify->assets_dir = 'assets'; $this->minify->css(array('reset.css', 'style.css', 'tinybox.css')); echo $this->minify->deploy_css(false);
Download from GitHub:
[button link=”https://github.com/slav123/CodeIgniter-minify” style=”large red square” target=”_blank”]CodeIgniter-minify[/button]
This is a beta version, and comments will be appreciated.