<?php use yii\easyii\modules\shopcart\api\Shopcart; use yii\easyii\modules\subscribe\api\Subscribe; use yii\helpers\Url; use yii\widgets\Breadcrumbs; use yii\widgets\Menu; use yii\easyii\models\Setting; use yii\helpers\Html; $goodsCount = count(Shopcart::goods()); $this->beginContent('@app/views/layouts/base.php'); ?> <header class="navbar navbar-fixed-top bs-docs-nav" id="top" role="banner"> <div class="search"> <div class="container"> <?php echo Html::beginForm(Url::to(['/search']), 'get'); ?> <?php echo Html::textInput('text', $text, ['class' => 'form-control', 'placeholder' => '']); ?> <?php echo Html::endForm(); ?> </div> </div> <div class="container">
public function actionIndex($error = null) { return $this->render('index', ['goods' => Shopcart::goods(), 'error' => $error]); }
public function actionIndex() { return $this->render('index', ['goods' => Shopcart::goods()]); }
</div> </div> </div> <footer> <a class="btn dry-btn-2 shopping" href="/products/online" style="line-height:normal"> <?php echo Yii::t('easyii', 'Continue Shopping'); ?> </a> <?php if (\yii\easyii\modules\shopcart\api\Shopcart::goods()) { $url = 'href="/shopcart"'; } else { $url = ' href="javascript:void(0)" onclick="' . "\$('.alert').show()" . ' "'; } ?> <a class="btn dry-btn-2 pull-right" id="chanStat" <?php echo $url; ?> > <?php echo Yii::t('easyii', 'Check Out'); ?> </a> </footer> </div>