simpletree/yii2foundation

Foundation extension for Yii 2.

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:CSS

Type:yii2-extension

dev-master 2013-11-04 21:37 UTC

This package is not auto-updated.

Last update: 2024-05-25 13:49:23 UTC


README

Foundation extension for Yii 2 (ALPHA - do not use on a production server)

The extension was developed for personal use, but since sharing is caring, here it is. It is ported from Bootstrap to retain the highest level of compatibility.

Installation

Edit your config/AppAsset.php so it looks like this

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $depends = array(
        'yii\web\YiiAsset',
        'Simpletree\Foundation\FoundationAsset'
    );
}

Configuration

To compile SASS on page load set FoundationAsset::compile to self::COMPILE_AUTO or self::COMPILE_FORCE and FoundationAsset::publishOptions['forceCopy'] to true.