• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP assets\AppAsset类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了AppAsset类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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, ['depends' => AppAsset::className()]);
 }
开发者ID:RoyZeng,项目名称:weimp,代码行数:4,代码来源:AppAsset.php


示例3:

<?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


示例4:

">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode(LsYii::getName());
?>
</title>
    <?php 
AppAsset::registerCssFile('/basic/css/admin_login.css');
?>
    <?php 
$this->head();
?>
</head>
<body>
    <?php 
$this->beginBody();
?>
    <?php 
echo $content;
?>
    <?php 
$this->endBody();
?>
开发者ID:liuwz465501235,项目名称:lscms,代码行数:31,代码来源:login.php


示例5:

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use yii\widgets\Menu;
\backend\assets\AppAsset::register($this);
$this->title = $this->title . " | Панель Управления";
$this->beginPage();
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
开发者ID:ejen,项目名称:yii2-app-advanced,代码行数:31,代码来源:main.php


示例6:

<?php

/* @var $this \yii\web\View */
/* @var $content string */
use source\LsYii;
use backend\assets\AppAsset;
use source\helpers\Html;
use source\helpers\Url;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use source\models\Menu;
AppAsset::registerBasic();
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
    <head>
        <meta charset="<?php 
echo Yii::$app->charset;
?>
">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
echo Html::csrfMetaTags();
?>
        <title><?php 
开发者ID:liuwz465501235,项目名称:lscms,代码行数:31,代码来源:main.php


示例7:

<?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


示例8:

<?php

use backend\assets\AppAsset;
use yii\widgets\ActiveForm;
use yii\widgets\LinkPager;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
$this->registerMetaTag(['name' => 'keywords', 'content' => '添加品牌']);
$this->registerMetaTag(['name' => 'description', 'content' => '添加品牌'], 'description');
$this->title = '代理系统-添加品牌';
$this->params['breadcrumbs'][] = '商品管理';
$this->params['breadcrumbs'][] = '添加品牌';
AppAsset::register($this);
AppAsset::addScript($this, '@web/js/plugins/validate/jquery.validate.min.js');
?>
<div class="wrapper wrapper-content">
	<div class="row">
		<div class="col-lg-12">
        <div class="ibox float-e-margins">
	        <div class="ibox-title">
	            <h5>添加品牌</h5>
	        </div>

            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-9 m-b-xs tooltip-demo">
                        <a href="<?php 
echo Url::toRoute(['brandlist']);
?>
开发者ID:dlpc,项目名称:yii2-plane,代码行数:31,代码来源:brandadd.php


示例9: intval

<?php

use backend\widgets\Delete;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.dataTables.min.js');
AppAsset::addScript($this, '@web/js/unicorn.tables.js');
AppAsset::addScript($this, '@web/js/custom-menus/custommenus.js');
$fid = intval(Yii::$app->request->get('fid', 0));
if ($fid) {
    $this->params = ['breadcrumb' => [['name' => '一级菜单【' . $parent_menu['title'] . '】', 'url' => Url::to(['custom-menus/index', 'pid' => Yii::$app->controller->pid]), 'current' => 0], ['name' => '二级菜单', 'url' => '#', 'current' => 1]]];
} else {
    $this->params = ['breadcrumb' => [['name' => '一级菜单', 'url' => '#', 'current' => 1]]];
}
?>
<div class="row-fluid">
<div class="span12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
			<h5>自定义菜单列表</h5>
			<a class="btn btn-info label" href="<?php 
echo Url::to(['custom-menus/form', 'pid' => Yii::$app->controller->pid, 'fid' => $fid]);
?>
">创建</a>
开发者ID:RoyZeng,项目名称:weimp,代码行数:31,代码来源:index.php


示例10:

                    <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


示例11:

<?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


示例12:

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.tmpl.min.js');
AppAsset::addScript($this, '@web/js/forever-material/forevermaterial.js');
$action = 'create';
$op_text = '创建';
$this->params = ['breadcrumb' => [['name' => '素材管理', 'url' => '#', 'current' => 0], ['name' => '永久素材', 'url' => Url::to(['forever-material/index', 'pid' => Yii::$app->controller->pid]), 'current' => 0], ['name' => $op_text . '永久素材', 'url' => '#', 'current' => 1]]];
?>
<div class="row-fluid">
	<div class="span12">
		<div class="widget-box">
			<div class="widget-title">
				<span class="icon">
					<i class="icon-align-justify"></i>								
				</span>
				<h5>创建永久素材</h5>
			</div>
			<div class="widget-content nopadding">
				<form action="<?php 
echo Url::to(['forever-material/' . $action]);
?>
" method="post" class="form-horizontal" enctype="multipart/form-data" />
					<div class="control-group">
						<label class="control-label">素材名称</label>
开发者ID:RoyZeng,项目名称:weimp,代码行数:31,代码来源:form.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


示例14:

<?php

/* @var $this \yii\web\View */
/* @var $content string */
use source\LsYii;
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use source\libs\Resource;
AppAsset::registerDefault();
AppAsset::registerCssFile('/default/css/admin_login.css');
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
开发者ID:liuwz465501235,项目名称:lscms,代码行数:31,代码来源:login.php


示例15:

<?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


示例16: init

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


示例17:

<?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


示例18:

<?php

use yii\helpers\Html;
use common\helpers\Common;
use backend\widgets\LinkPager;
use backend\widgets\Delete;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.dataTables.min.js');
AppAsset::addScript($this, '@web/js/unicorn.tables.js');
$this->params = ['breadcrumb' => [['name' => '素材管理', 'url' => '#', 'current' => 0], ['name' => '本地素材', 'url' => '#', 'current' => 1]]];
?>
<div class="row-fluid">
<div class="span12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
			<h5>本地素材列表</h5>
		</div>
		<div class="widget-content">
			<table class="table table-bordered table-striped with-check">
				<thead>
					<tr>
						<th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" /></th>
						<th>文件名</th>
开发者ID:RoyZeng,项目名称:weimp,代码行数:31,代码来源:index.php


示例19:

<?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


示例20: registerClientScript

 /**
  *
  */
 public function registerClientScript()
 {
     $view = $this->getView();
     if ($this->language !== null) {
         $this->clientOptions['locale'] = $this->language;
         AppAsset::register($view)->js[] = $this->localePath . $this->language . '.js';
     } else {
         AppAsset::register($view);
     }
     $id = $this->options['id'];
     $selector = "jQuery('#{$id}')";
     if (strpos($this->template, '{button}') !== false) {
         $selector .= ".parent()";
     }
     $options = !empty($this->clientOptions) ? Json::encode($this->clientOptions) : '';
     $js[] = "{$selector}.datetimepicker({$options});";
     if (!empty($this->clientEvents)) {
         foreach ($this->clientEvents as $event => $handler) {
             $js[] = "{$selector}.on('{$event}', {$handler});";
         }
     }
     $view->registerJs(implode("\n", $js));
 }
开发者ID:lebeddima,项目名称:booking,代码行数:26,代码来源:DateTimePicker.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Classes\Controller类代码示例发布时间:2022-05-23
下一篇:
PHP Store\Factory类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap