Nav::widget http://www.yiiframework.com/doc-2.0/yii-bootstrap-nav.html Menu::widget() http://www.yiiframework.com/doc-2.0/yii-widgets-menu.html#$items ...
分类:
其他好文 时间:
2016-07-31 17:22:59
阅读次数:
223
yii2中使用顶部导航的具体方法: 1.视图中调用两个类: use yii\bootstrap\Nav;use yii\bootstrap\NavBar; 2. <?php NavBar::begin([ 'brandLabel' => 'My Company', 'brandUrl' => Yii ...
分类:
其他好文 时间:
2016-04-14 22:09:44
阅读次数:
217
Yii2本身已经引用了'yii\bootstrap\BootstrapAsset',所以使用bootstrap非常简洁。1 在PHP页面引用命名空间 use app\assets\AppAsset;2可以直接在PHP页面书写要弹出的iframe的div;在此出可以设置弹窗的宽高,位置,对话框标题等 ...
分类:
其他好文 时间:
2015-08-28 19:43:45
阅读次数:
254
1、下载ueditor,在yii2目录的web文件夹下新建的public文件夹,把ueditor放入public下
2、在view下新建ueditor.php文件<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;/* @var $this yii\web\View引入相关js文件 */
<?=Html::jsFile('@web/pu...
分类:
其他好文 时间:
2015-07-12 15:50:47
阅读次数:
92
view视图create.php<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm; 'upload',
'enableAjaxValidation' => false,
'options' => ['enctype' => 'mul...
分类:
Web程序 时间:
2015-07-12 15:48:15
阅读次数:
154
第一步:首先下载扩展包,解压至 protected/extensions 目录,此时在改目录下存在 bootstrap 文件夹
第二步:在配置文件中配置:
// 配置一个别名 使得可以bootstrap访问到扩展路径
Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');...
分类:
其他好文 时间:
2015-06-15 09:29:18
阅读次数:
163
第一步:index.php// include Yii bootstrap filerequire_once(dirname(__FILE__).'/../../framework/yii.php');defined('YII_DEBUG') or define('YII_DEBUG',true);...
分类:
其他好文 时间:
2014-08-28 22:38:56
阅读次数:
261
yii2中使用顶部导航的具体方法:1.视图中调用两个类:use yii\bootstrap\Nav;use yii\bootstrap\NavBar;2. 'My Company', 'brandUrl' => Yii::$app->homeUrl, 'options' => [ 'class' =...
分类:
其他好文 时间:
2014-07-22 00:27:36
阅读次数:
474