efontawesome Component to make FontAwesome available to Yii

  1. Requirements
  2. Usage
  3. Resources

Just a small component I've made as an exercise and for fun which make available FontAwesome icons to Yii and don't collide with Bootstrap's Glyphicons.

Requirements

Created and Tested with Yii 1.1.12.

Usage

Extract the zip contents to a folder. Example: ext.EFontAwesome

Add the following code to config/main.php

...
        'preload' => array(
            ...
            'efontawesome',
            ...
        ),
...
        
        // application components
        'components' => array(
            'efontawesome' => array(
                'class' => 'ext.EFontAwesome.components.EFontAwesome',
            ),
        ),
...

How to use it:

Example taken from FontAwesome site:

icon-camera-retro

Note:

The classes defined by FontAwesome are like: "icon-xxx". To use it, you must reference the icons as "icon-fa-xxx"

Resources

Font Awesome Site

11 0
21 followers
1 093 downloads
Yii Version: 1.1
License: (not set)
Category: User Interface
Developed by: jmariani
Created on: Dec 14, 2012
Last updated: 8 years ago

Downloads

show all

Related Extensions