MW
Авторизация проходит, и клиент не получает session(cookie).
Size: a a a
MW
А
MW
GU
А
А
А
А
O
K
Д
K
GU
GU
GU
Д
GU
echo $form->field($model, 'ingredient_id', [
'options' => ['class' => 'col-md-7 col-xs-12 form-group']
])->label(Module::t('app','Ingredient'))
->widget(Select2::classname(), [
'options' => [
'placeholder' => Module::t('app','Select an ingredient...'),
],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => Url::to(['/recipes/ingredient/list']),
'dataType' => 'json',
'delay' => '500',
'data' => new JsExpression('function(params) { return {q:params.term}; }'),
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(data) { return data.text; }'),
'templateSelection' => new JsExpression('function(data) { return data.text; }'),
],
]);
Д
echo $form->field($model, 'ingredient_id', [
'options' => ['class' => 'col-md-7 col-xs-12 form-group']
])->label(Module::t('app','Ingredient'))
->widget(Select2::classname(), [
'options' => [
'placeholder' => Module::t('app','Select an ingredient...'),
],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => Url::to(['/recipes/ingredient/list']),
'dataType' => 'json',
'delay' => '500',
'data' => new JsExpression('function(params) { return {q:params.term}; }'),
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(data) { return data.text; }'),
'templateSelection' => new JsExpression('function(data) { return data.text; }'),
],
]);
YR
Д