1
我正在使用yii2高級應用程序。我最近將模板應用於我的應用程序。但現在(應用模板/主題後),我的「portfoliolist」不起作用。Yii2 - 模板主題問題
這裏是我的「index.php文件的代碼,我想用portfoliolist:
<div class="main_bg">
<div class="wrap">
<div class="main">
<!-- start gallery -->
<div class="container">
<div id="portfoliolist">
<?php
$m = $dataProvider;
foreach ($m as $dp) {
echo '<a id ="img_id" class="" href="http://localhost/efa-webv1/frontend/web/index.php?r=site/subcat&img_id='.$dp['bmc_id'].'" method="get">'; // echo '<a onclick="alert('.$dp['bmc_id'].')"';
echo '<div class="portfolio logo1" data-cat="logo">';
echo '<div class="portfolio-wrapper">';
echo "<img src = '"."http://www.abcd.com/web/".$dp['bmc_image']."' />";
echo '<center><font color = "white">'.$dp['bmc_name'].'<font/></center>';
echo '</div>';
echo '</div>';
echo '</a>';
} ?>
</div>
</div><!-- end container -->
</div>
</div>
</div>
而且,我的 'AppAsset.php' 是(如果需要):
<?php
namespace frontend\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
// public $basePath = '@webroot';
// public $baseUrl = '@web';
public $sourcePath='@bower/efatheme/';
public $css = [
'css/magnific-popup.css',
'css/style.css',
'css/magnific-popup.css',
'http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'
];
public $js = [
'js/jquery.min.js',
'js/jquery.easing.min.js',
'js/jquery.mixitup.min.js',
'js/jquery.magnific-popup.js',
'js/classie.js',
'js/uisearch.js',
'js/responsive.menu.js',
'js/jquery.contentcarousel.js',
'js/jquery.mousewheel.js',
'js/jquery-1.11.0.min.js',
'js/jquery.leanModal.min.js',
'https://apis.google.com/js/client.js?onload=init',
'https://apis.google.com/js/client.js',
];
public $depends = [
'yii\web\YiiAsset',
];
}
那麼,是什麼我應該怎麼做才行?或者是有任何的替代產品組合,使我的內容將顯示如下 -