Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Licence MIT Splint Latest Release Commits

cdn-helper

This library makes available, functions that return HTML link/script tags as string for popular JS and CSS libraries like

  • Bootstrap
  • W3.CSS
  • JQuery
  • Popper.js
  • FontsAwesome
  • REACT
  • AngularJS
  • Materialize CSS
  • Vue
  • VueX

You can call them in your view files.

Installation

To install, download and install Splint from https://splint.cynobit.com/downloads/splint and then run the below from your Code Igniter project root

splint install francis94c/cdn-helper

Loading

From anywhere you can access the CI instance

$this->load->splint('francis94c/cdn-helper', '%cdn');
// OR
$this->load->package('francis94c/cdn-helper');

Functions

Note: some of these function return the development version of their respective CDN links if the value of ENVIRONMENT is development.

w3css();
jquery();
bootstrap();
bootstrap(true); // Return JS CDN as well.
popper();
fontsawesome();
react();
qunit();
angularjs();
materializecss();
vue();
vuex();

About

Code Igniter helper for outputting popular JS and CSS library CDN links.

Resources

License

Packages

No packages published

Languages