dev-master
9999999-devA Yii2 widget for outdated-browser
BSD-3-Clause BSD 3-Clause
The Requires
- yiisoft/yii2 dev-master
- bower-asset/outdated-browser 1.1.0
by Sammaye
extension yii2 browser outdated-browser
A Yii2 widget for outdated-browser
Yii2 widget for http://outdatedbrowser.com/., (*1)
Usage of this plugin is really simple, just include it in your composer.json
like so:, (*2)
``` bash 'sammaye/yii2-outdated-browser': '*', (*3)
and then update your composer (`php ./composer.phar update`) and finally include it in your page: ``` php <?= sammaye\outdatedBrowser\OutdatedBrowser::widget() ?>
The outdated browser plugin accepts four parameters which can be provied as class vars like so:, (*4)
<?= sammaye\outdatedBrowser\OutdatedBrowser::widget(['language' => 'ar', 'bgColor' => '#f25648']) ?>
Using this only for IE7 can be very useful especially since Bootstrap 3.x supports IE8+, (*5)
Since Yii2, by default, only uses JQuery 2.2 you must actually add a line to your composer to make this work:, (*6)
``` bash "bower-asset/jquery": "~1.11@stable",, (*7)
And then when calling the plugin you simply put: ``` php <?= sammaye\outdatedBrowser\OutdatedBrowser::widget(['onlyIe7' => true]) ?>
A Yii2 widget for outdated-browser
BSD-3-Clause BSD 3-Clause
extension yii2 browser outdated-browser