Yii 2.0: yii2-foundation

The most advanced responsive front-end framework in the world.
4 followers

Yii2 Extension for Foundation front end Framework.

Foundation is a fast and easy to use front end framework for any device. Fully responsive and great for all projects.

Foundation Website

  Still in development: More widgets are on their way.

Requirements

Yii 2.*

Installation

Composer:

1) Add to your composer.json

"require": {
  // ...
  "linchpinstudios/yii2-foundation": "*",
  // ...
},

2) Run

php composer.phar update

Setup Assets

Add to your Assets/AppAssets.php

public $depends = [
  // ...
  'linchpinstudios\foundation\FoundationAssets',
  // ...
];

Icon Bar

1) Include namespace

Foundation Documentation

use linchpinstudios/foundation/IconBar

2) Setup output

echo IconBar::widget([
    'direction' => 'vertical',
    'labelRight' => true,  
    'icons' => [
        'items' => [
            ['label' => 'One', 'url' => '/', 'icon' => 'fi-address-book'],
            ['label' => 'Two', 'url' => '#', 'icon' => 'fi-alert'],
        ],
    ],
]);

Resources

Github

Author

Total 1 comment

#18460 report it
Ziggi at 2014/11/02 11:40am
Gread piece of work !!!

I really appreciate!

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet