Застрял над такой простой проблемой.
Код: Выделить всё
<?= $form->field($model, 'id_model')->dropDownList(\common\models\HwModels::getHWModelList(),
['prompt' => [
'text' => Yii::t('backend_translate', 'Select a Model'),
'options' => [
'value' => 'null'
],
],
'onchange' => ' $.pjax.reload(
{
container: "#actionSection",
url: "'.\yii\helpers\Url::to(['hardware/add-cpu']).'",
type: "POST",
data: {id_model: $(this).val()}
});
',
])->label(Yii::t('backend_translate', 'Model Name')); ?>
Код: Выделить всё
<? Pjax::begin([
'id'=>'actionSection',
'enablePushState' => false]); ?>
<? Pjax::end(); ?>
Спасибо.