Skip to content

mimicreative/yii2-html5shiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML5Shiv Asset Bundle for Yii2

Installation

The preferred way to install this extension is through composer.

Add to the require section of your composer.json file:

"mimicreative/yii2-html5shiv": "~1.0"

And run in terminal

composer update

Usage

Use as the asset bundle in Yii2 View files.

// write this in your view file or layout
\mimicreative\assets\Html5ShivAsset::register($this);

Or maybe you prefer to include it in your asset dependency.

public $depends = [
  // ...
  'mimicreative\assets\Html5ShivAsset',
  // ...
];

By default, this will install html5shiv js file at the head.

About

Yii2 HTML5 Shiv Asset Bundle using bower

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages