Пример #1
0
 

    <?php 
echo $form->field($modelBrandsCityField, 'name')->checkbox(['label' => 'Lock']);
?>

    <?php 
echo $form->field($model, 'website')->textInput(['maxlength' => 225]);
?>

    <?php 
echo $form->field($modelBrandsCityField, 'website')->checkbox(['label' => 'Lock']);
?>

    <?php 
echo $form->field($model, 'pricefortwo')->dropDownList(ArrayHelper::merge(['' => 'Select'], \common\models\Restaurant::priceForTwo()));
?>
 

    <?php 
echo $form->field($modelBrandsCityField, 'pricefortwo')->checkbox(['label' => 'Lock']);
?>
 

    <?php 
/*/?><?= $form->field($model, 'cuisine')->dropDownList(ArrayHelper::merge([],ArrayHelper::map(\common\models\Cuisine::find()->andWhere(['status' => 1])->All(), 'Id', 'name')),['multiple'=>'multiple','size'=>7,'title'=>'Select Cuisines']) ?> <?php //*/
?>

    <?php 
echo $form->field($model, 'cuisine')->widget(Multiselect::className(), ['data' => ArrayHelper::merge([], ArrayHelper::map(\common\models\Cuisine::find()->andWhere(['status' => 1])->All(), 'Id', 'name')), 'options' => ['multiple' => 'multiple', 'size' => 7, 'title' => 'Select Cuisines']]);
?>