当前位置: 首页>>代码示例>>PHP>>正文


PHP AppAsset::className方法代码示例

本文整理汇总了PHP中backend\assets\AppAsset::className方法的典型用法代码示例。如果您正苦于以下问题:PHP AppAsset::className方法的具体用法?PHP AppAsset::className怎么用?PHP AppAsset::className使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在backend\assets\AppAsset的用法示例。


在下文中一共展示了AppAsset::className方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<?php

use backend\assets\AppAsset;
use yii\bootstrap\BootstrapAsset;
AppAsset::register($this);
$this->registerCssFile('/matis/lib/bootstrap/css/bootstrap.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/lib/font-awesome/css/font-awesome.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/css/main.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/lib/metismenu/metisMenu.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('http://fonts.googleapis.com/css?family=Kaushan+Script:400', ['depends' => BootstrapAsset::className()]);
//$this->registerJsFile('/js/last/jquery.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/jquery/jquery.min.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/switch/js/bootstrap-switch.min.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/bootstrap/js/bootstrap.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/matis/lib/modernizr/modernizr.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/matis/lib/metismenu/metisMenu.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/js/youtube.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/js/custom/flash.js', ['depends' => AppAsset::className()]);
$this->registerCssFile('/switch/bootstrap-switch.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerJsFile('/switch/bootstrap-switch.min.js', ['depends' => AppAsset::className()]);
开发者ID:kotmonstr,项目名称:kotmonstr,代码行数:21,代码来源:_pre_header.php

示例2: addCss

 public static function addCss($view, $cssfile)
 {
     $view->registerCssFile($cssfile, [AppAsset::className(), 'depends' => 'backend\\assets\\AppAsset']);
 }
开发者ID:dlpc,项目名称:yii2-plane,代码行数:4,代码来源:AppAsset.php

示例3: init

 public function init()
 {
     parent::init();
     \Yii::$app->view->registerJsFile('/js/app/online.js', ['depends' => [AppAsset::className()]]);
 }
开发者ID:xuguoliangjj,项目名称:datacenter,代码行数:5,代码来源:OnlineController.php

示例4:

<?php

use yii\helpers\Url;
use common\models\User;
use common\models\Comment;
use yii\helpers\StringHelper;
use app\components\TemplateWidget;
Yii::$app->formatter->locale = 'ru-RU';
$this->registerJsFile('/js/custom/comment.js', ['depends' => \backend\assets\AppAsset::className()]);
//vd($model);
?>


<div class="container" style="text-align: center; padding: 0px 35px">
    <div class="row pos bg_preview_post">


        <div class="row">
            <div class="col-md-12" style="text-align: center">
                <input type="hidden" id="comment_id" value="<?php 
echo $model->id;
?>
">
                <h3><?php 
echo $model->title;
?>
</h3>
            </div>
        </div>

   
开发者ID:kotmonstr,项目名称:kotmonstr,代码行数:29,代码来源:views.php

示例5: addCss

 public static function addCss($view, $cssfile)
 {
     $view->registerCssFile($cssfile, ['depends' => AppAsset::className()]);
 }
开发者ID:RoyZeng,项目名称:weimp,代码行数:4,代码来源:AppAsset.php

示例6:

<?php

/* @var $this yii\web\View */
use yii\helpers\Url;
$this->title = Yii::$app->name . '- Dashboard';
//$this->registerCssFile(Yii::$app->request->baseUrl . '/css/xenon-components.css');
//$this->registerCssFile(Yii::$app->request->baseUrl . '/css/fonts/linecons/css/linecons.css');
$this->registerCssFile('//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css');
////code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css
//echo \Yii::$app->session->get('branch');
//echo 'branchId :'.Yii::$app->user->identity->branchId;
//echo 'role :'.Yii::$app->user->identity->role;
$this->registerJsFile('https://apis.google.com/js/platform.js', ['jsOptions' => ['asynch', 'defer'], 'depends' => [\backend\assets\AppAsset::className()]]);
?>
<p>&nbsp;</p>
<div class="row">
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>2
                    <?php 
//echo app\models\Transaction::find()->count();
?>
                </h3>
                <p>
                    Transactions
                </p>
            </div>
            <div class="icon">
                <i class="ion ion-bag"></i>
开发者ID:sintret,项目名称:yii2-advanced,代码行数:31,代码来源:index.php

示例7:

<?php

use yii\helpers\Html;
// 引入 AppAsset 资源包
use backend\assets\AppAsset;
use yii\helpers\Url;
// 在本视图注册此资源包
AppAsset::register($this);
// 获取发布后资源包对应的临时目录
$baseUrl = $this->assetBundles[AppAsset::className()]->baseUrl . '/';
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
<meta charset="<?php 
echo Yii::$app->charset;
?>
">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php 
$this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1']);
echo Html::csrfMetaTags();
?>
<title><?php 
echo Html::encode($this->title);
?>
</title>
开发者ID:171906502,项目名称:wetM2.0,代码行数:31,代码来源:bjui.php

示例8:

<?php

use yii\widgets\ActiveForm;
use yii\helpers\Html;
//use frontend\assets\AppAsset;
/* @var $this \yii\web\View */
/* @var $content string */
//AppAsset::register($this);
$model = new \common\models\ImageSlider();
//$this->registerJsFile('/js/last/jquery.js');
use backend\assets\AppAsset;
$this->registerJsFile('/js/custom/upload.js', ['depends' => AppAsset::className()]);
?>
<div id="content">
    <div class="outer">
        <div class="inner bg-light lter">
            <div id="collapse4" class="body">
                <div class="video-categoria-index">
                    <?php 
$form = ActiveForm::begin(['action' => ['/image/submit'], 'options' => ['enctype' => 'multipart/form-data'], 'id' => 'form-send-file']);
?>
                    <?php 
echo $form->field($model, 'file')->fileInput(['class' => 'send-file']);
?>
                    <?php 
echo $form->field($model, 'link')->textInput();
?>
                    <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success send-file-submit' : 'btn btn-success send-file-submit']);
?>
                    <?php 
开发者ID:kotmonstr,项目名称:kotmonstr,代码行数:31,代码来源:form.php

示例9:

<?php

use yii\widgets\ListView;
use yii\grid\GridView;
use yii\helpers\html;
use yii\helpers\Url;
$this->registerCssFile('/backend/web/css/show-transactions.css', ['depends' => [\backend\assets\AppAsset::className()]]);
/* @var $this yii\web\View */
$this->title = 'Выплаты автосалонам';
?>

<div class="row site-index">
    <div class="col-xs-12" id="box-list-transaction">

        <div id="box-transaction">
            <h1>Заявки на выплату</h1>

            <ul id="list-tp">
                <li id="lit1">авто</li>
                <li id="lit2">дата платежа</li>
                <li id="lit3">номер операции</li>
                <li id="lit4">реквизиты салона</li>
                <li id="lit5">расчеты</li>
                <li id="lit6">статус</li>
            </ul>


            <?php 
yii\widgets\Pjax::begin();
?>
            <?php 
开发者ID:HejVkt,项目名称:auto.only3.ru,代码行数:31,代码来源:show-transactions.php

示例10:

<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\assets\AppAsset;
AppAsset::register($this);
$this->registerJsFile('/js/jquery.js', ['depends' => AppAsset::className()]);
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
<section id="content">
    <div class="sub-content">
        <div class="container">
            <div class="row">

                <div class="col-md-6 col-md-offset-4">
                    <h4>Вход</h4>
                    <div class="contact-form">
                        <?php 
$form = ActiveForm::begin(['action' => '/site/login', 'id' => 'contact-form', 'enableAjaxValidation' => true]);
?>
                        <fieldset>
                            <label class="name">
                                <?php 
echo $form->field($model, 'username')->label('')->textInput(['placeholder' => 'Имя']);
?>
	 						
                            </label>	         
                            <label class="password">
                                <?php 
echo $form->field($model, 'password')->label('')->passwordInput(['placeholder' => 'Password']);
开发者ID:kotmonstr,项目名称:full-shop,代码行数:31,代码来源:login.php

示例11:

                    <div>
                        <span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span>
                            <?php 
echo Html::activeFileInput($model, "avatarFile");
?>
                        </span>
                        <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php 
ActiveForm::end();
$this->registerCssFile("@web/plugin/jasny-bootstrap/css/jasny-bootstrap.min.css", ['depends' => [AppAsset::className()]]);
$this->registerJsFile('@web/plugin/jasny-bootstrap/js/jasny-bootstrap.min.js', ['depends' => [\yii\web\JqueryAsset::className()], 'position' => View::POS_HEAD]);
$this->registerJsFile('@web/plugin/tinymce/js/tinymce/tinymce.min.js', ['depends' => [\yii\web\JqueryAsset::className()], 'position' => View::POS_HEAD]);
?>
<script>
    //moxiemanager
    tinymce.init({
        selector: '#content-body',
        height: 800,
        plugins: [
            'advlist autolink autoresize charmap code codesample textcolor colorpicker contextmenu directionality emoticons fullscreen hr image imagetools',
            'legacyoutput link lists media paste preview table textcolor visualblocks wordcount'
        ],
        toolbar1: 'bold italic strikethrough bullist numlist blockquote hr | alignleft aligncenter alignright link unlink fullscreen code',
        toolbar2: 'formatselect underline alignjustify forecolor removeformat charmap indent outdent undo redo image',
        content_css: ['<?php 
开发者ID:Mitonios,项目名称:mitonios-blog,代码行数:31,代码来源:_form.php

示例12:

<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use backend\assets\AppAsset;
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
$this->registerCssFile("@web/css/signin.css", ['depends' => [AppAsset::className()]]);
$form = ActiveForm::begin(['id' => 'login-form', 'options' => ['class' => 'form-signin'], 'fieldConfig' => ['template' => "{input}"]]);
?>
<h2 class="form-signin-heading">Please sign in</h2>

<?php 
echo $form->field($model, 'username');
echo $form->field($model, 'password')->passwordInput();
?>

<div class="checkbox">
    <?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
<?php 
ActiveForm::end();
开发者ID:Mitonios,项目名称:mitonios-blog,代码行数:26,代码来源:login.php

示例13:

    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'content')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'created_at')->textInput();
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
<?php 
$this->registerJsFile('/admin/js/_guest-book.js', ['depends' => AppAsset::className()]);
开发者ID:valeriy-kos,项目名称:test-vis,代码行数:29,代码来源:_form.php


注:本文中的backend\assets\AppAsset::className方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。