Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chaplean/outdated-browser-bundle


https://github.com/chaplean/outdated-browser-bundle

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

Getting Started With Chaplean Outdated Browser Bundle
=====================================================

# 1. Add me in AppKernel

app/AppKernel.php:
```php
...
/**
* @return array
*/
public function registerBundles()
{
return array(
...
new Chaplean\Bundle\OutdatedBrowserBundle\ChapleanOutdatedBrowserBundle(),
);
}
...
```

# 2. Define config (Optionnal)

app/config/config.yml:
```yaml
# default option
chaplean_outdated_browser:
background_color: '#f25648'
color: '#ffffff'
lower_than: 'transform'
template: 'ChapleanOutdatedBrowserBundle:Template:outdated.html.twig'
```

`lower_than` can take:

* "IE11","borderImage"
* "IE10", "transform" (Default property)
* "IE9", "boxShadow"
* "IE8", "borderSpacing"

# 3. Update assetic

Add this bundle in assetic config:
```yaml
assetic:
bundles: ['ChapleanOutdatedBrowserBundle']
```

# 4. Add routes

Include a routing in global routing

app/config/routing.yml:
```yaml
chaplean_outdated_browser_bundle:
resource: "@ChapleanOutdatedBrowserBundle/Resources/config/routing.yml"
prefix: /
```

# 5. Add script in layout

In layout html add me simply:

Version unminified:
```html

```

Version minified:
```html

```