Answer the question
In order to leave comments, you need to log in
Yii2. Attaching a file in a widget?
Hello. You need to display a popup widget, the widget is called like this
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'attribute')->widget(Widget::className()) ?>
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
<?php ActiveForm::end(); ?>
if (условие) {
require_once __DIR__ . '\popup.php';
}
Answer the question
In order to leave comments, you need to log in
Good afternoon.
That's bullshit.
if (условие) {
require_once __DIR__ . '\popup.php';
}
popup widget
if (условие) { require_once __DIR__ . '\popup.php'; }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question