2017 © Pedro Peláez
 

yii2-extension yii2-outdated-browser

A Yii2 widget for outdated-browser

image

jakabj16/yii2-outdated-browser

A Yii2 widget for outdated-browser

  • Wednesday, January 31, 2018
  • by jakabj16
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 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() ?>

Setting the parameters

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

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]) ?>

The Versions

31/01 2018

dev-master

9999999-dev

A Yii2 widget for outdated-browser

  Sources   Download

BSD-3-Clause

The Requires

 

by Jozsef Jakab

extension yii2 browser outdated-browser