You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
542 B
25 lines
542 B
<?php |
|
/** |
|
* @copyright Copyright (c) 2008 Yii Software LLC |
|
* @link http://www.yiiframework.com/ |
|
* @license http://www.yiiframework.com/license/ |
|
*/ |
|
|
|
namespace yii\bootstrap\helpers\base; |
|
use Yii; |
|
|
|
/** |
|
* Assets provides methods to register bootstrap assets. |
|
* |
|
* @author Antonio Ramirez <amigo.cobos@gmail.com> |
|
* @since 2.0 |
|
*/ |
|
class Assets |
|
{ |
|
public static function registerBundle($responsive = false) |
|
{ |
|
$bundle = $responsive ? 'yii/bootstrap' : 'yii/bootstrap-responsive'; |
|
|
|
Yii::$app->getView()->registerAssetBundle($bundle); |
|
} |
|
} |