enchikiben / yii2-cdn
Yii2 cdn assets
dev-master
2016-10-28 18:17 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-02-26 09:13:46 UTC
README
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist "enchikiben/yii2-cdn" "*"
or
"enchikiben/yii2-cdn" : "*"
Configure
'components' => [ 'cdn' => [ 'class' => 'enchikiben\cdn\CDNComponent', 'domains' => [ '//static.example.com', '//static2.example.com', '//static2.example.com' ] ] ],
and
'bootstrap' => [ 'cdn' ],