Beispiel #1
0
<div class="content gray-color">
<div class="find-bg">
    <div class="container">
        <div class="row">
        
            <div class="col-md-12" style="">
                
                    <h1><?php 
echo Yii::t('easyii', 'Find Nearest Shop');
?>
  </h1>

          
    
        <?php 
$allProducts = \app\models\Products::FetchProducts();
$form = ActiveForm::begin(['method' => 'get', 'action' => Url::to(['/stores/index', 'slug' => $cat->slug])]);
if (isset($_REQUEST['productCode'])) {
    $filterForm->product_id = $_REQUEST['productCode'];
}
?>


                    <div class="col-md-4 col-md-offset-4">
                       
                           <?php 
echo $form->field($filterForm, 'product_id')->dropDownList($allProducts, ['prompt' => Yii::t('easyii', 'Product'), 'class' => 'btn btn-findUs  dropdown-toggle'])->label('');
?>
                     
                    </div>
					<div class="clearfix"></div>