SPLINT Packages Wiki Downloads {} Blog Log In Sign Up

SPLINT

Packages

Wiki

Downloads

{} Blog

Log In


Sign Up

francis94c/cdn-helper

v0.0.5 612 0 - 0.0 0 {} 0


×

Are you sure you want to delete this package?

Users will no longer be able to intall this package if you do so.

Description

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

README

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

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();

with from CynoBit