3.</a>
</div>
<?php endforeach;?>
</div>
<!-- 轮播(Carousel)导航 -->
<a class="carousel-control left" href="#myCarousel"
data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#myCarousel"
data-slide="next">&rsaquo;</a>
</div>
</div>
<?php endforeach;?>
</div>
<!-- 轮播(Carousel)导航 -->
<a class="carousel-control left" href="#myCarousel"
data-slide="prev">&lsaquo;</a>
<a class="carousel-control right" href="#myCarousel"
data-slide="next">&rsaquo;</a>
</div>
2017-03-03
2.<div class="carousel-inner home-banner" role='listbox'>
<?php foreach ($data['items'] as $k=>$list):?><div class="item <?=$list['active']?>"><a href="<?=Url::to($list['url']) ?>"><img style="width:848px;height:300px" src="<?=$list['image_url']?>" alt="<?=$list['label']?>">
<?php foreach ($data['items'] as $k=>$list):?><div class="item <?=$list['active']?>"><a href="<?=Url::to($list['url']) ?>"><img style="width:848px;height:300px" src="<?=$list['image_url']?>" alt="<?=$list['label']?>">
2017-03-03
1.<?php
use yii\helpers\Url;
?><div id="myCarousel" class="carousel slide">
<!-- 轮播(Carousel)指标 -->
<ol class="carousel-indicators">
<?php foreach ($data['items'] as $k=>$list):?>
<li data-target="#myCarousel" data-slide-to=<?=$k ?> class="<?=$list['active']?>"></li>
<?php endforeach;?>
</ol>
use yii\helpers\Url;
?><div id="myCarousel" class="carousel slide">
<!-- 轮播(Carousel)指标 -->
<ol class="carousel-indicators">
<?php foreach ($data['items'] as $k=>$list):?>
<li data-target="#myCarousel" data-slide-to=<?=$k ?> class="<?=$list['active']?>"></li>
<?php endforeach;?>
</ol>
2017-03-03
没有下载书签组件,改写下
public function saveTags(){
$ids=[];
if (!empty($this->tags)){
$tags=explode(' ',$this->tags);
foreach ($tags as $tag) {
$ids[]=$this->_saveTag($tag);
}
}
return $ids;
}
public function saveTags(){
$ids=[];
if (!empty($this->tags)){
$tags=explode(' ',$this->tags);
foreach ($tags as $tag) {
$ids[]=$this->_saveTag($tag);
}
}
return $ids;
}
2017-02-26
404的朋友,web 下新建.htaccess 文件
# use mod_rewrite for pretty URL support
RewriteEngine on
# if a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . index.php
# use mod_rewrite for pretty URL support
RewriteEngine on
# if a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward the request to index.php
RewriteRule . index.php
2017-02-23
说的不错,如果使用的是代码编辑器在四分钟的时候在site里面继承Base的控制器的时候需要在site文件中添加一句
use frontend\controllers\base\BaseController;
谢谢一楼提醒。
use frontend\controllers\base\BaseController;
谢谢一楼提醒。
2017-02-21
init.bat一闪而过的解决方法。开启步骤如下: 打开php配置文件php.ini; 找到;extension=php_openssl.dll,去掉前面的分号
2017-02-19