示例#1
0
        <div class="product-heading clearfix">
            <div class="pull-left margin-right-15">Sản phẩm nổi bật</div>
            <div class="line-wrapper"><div class="line"></div></div>
        </div>
        <?php 
echo BestProductsWidget::widget();
?>
        <div class="product-heading clearfix">
            <div class="pull-left margin-right-15">Sản phẩm bán chạy</div>
            <div class="line-wrapper"><div class="line"></div></div>
        </div>
        <?php 
echo HotProductsWidget::widget();
?>
    </div>
    <div class="margin-top-15"><?php 
echo SlideWidget::widget(['id' => Yii::$app->params['slide_2_id']]);
?>
</div>
    <div class="container">
        <div class="heading">
            <div class="line"></div>
            Tin tức
            <div class="line"></div>
        </div>
        <?php 
echo NewsWidget::widget(['cate_id' => Yii::$app->params['news_cate_id'], 'col' => 4]);
?>
    </div>
</div>
示例#2
0
        <link href="/css/helper.css" rel="stylesheet">
        <link href="/css/main.css" rel="stylesheet">
    </head>
    <body>
        
        <?php 
$this->beginBody();
?>
            <?php 
echo $this->render('_header');
?>
            <?php 
echo $this->render('_navbar');
?>
            <?php 
echo SlideWidget::widget();
?>
            <div class="bg-grey">
                <div class="container bg-white">
                    <?php 
echo $content;
?>
                    <?php 
echo $this->render('_brands');
?>
                    <?php 
echo $this->render('_footer');
?>
                </div>
            </div>    
        <?php