silverstripe-font-awesome/code/extensions/FontAwesomeControllerExtension.php
2017-06-09 09:14:28 +02:00

19 lines
377 B
PHP

<?php
use SilverStripe\Core\Extension;
use SilverStripe\View\Requirements;
/**
* Class FontAwesomeControllerExtension
*/
class FontAwesomeControllerExtension extends Extension
{
/**
* Load the font-awesome css into the template
*/
public function onBeforeInit()
{
Requirements::css(FONT_AWESOME_DIR . '/css/lib/font-awesome.min.css');
}
}