mdmsoft/import
Composer 安装命令:
composer require mdmsoft/import
包简介
Import namespace
README 文档
README
Import classes under namespace and used without namespace.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require mdmsoft/import "~1.0"
for dev-master
php composer.phar require mdmsoft/import "~1.0"
or add
"mdmsoft/import": "~1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, use in your code:
<?php Import::using('yii\bootstrap\Button'); // import yii\bootstrap\Button Import::using('yii\widgets\*'); // import all class under namespace yii\widgets Import::using('yii\bootstrap\Html', 'BootstrapHtml'); // import with alias Import::using([ 'yii\helpers\Html' => 'Html', 'yii\helpers\ArrayHelper', ]); ?> <?php echo Button::widget([ 'label' => 'Action Test', 'options' => ['class' => 'btn-lg'], ]); echo BootstrapHtml::icon('star'); ?> <?php Spaceless::begin(); ?> <div> <span>ABCDE</span> </div> <?php Spaceless::end();?> <?php $form = ActiveForm::begin()?> <?= $form->field($model,'attribute'); ?> <?php ActiveForm::end();?>
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-10-15