crud menu

This commit is contained in:
2024-08-30 16:14:31 +03:00
parent 5b4676a4c0
commit c325b156bd
28 changed files with 442 additions and 132 deletions

View File

@ -4,7 +4,6 @@
*/
use app\models\Post;
use app\models\User;
$form = new \itguild\forms\ActiveForm();
$form->beginForm(isset($model) ? "/admin/post/edit/" . $model->id : "/admin/post");
@ -18,7 +17,6 @@ $form->field(class: \itguild\forms\inputs\TextArea::class, name: "content", para
->setLabel("Пост")
->render();
$form->field(class: \itguild\forms\inputs\Select::class, name: "user_id", params: [
//$form->field(class: \itguild\forms\inputs\Select::class, name: "username", params: [
'class' => "form-control",
'value' => $model->user_id ?? ''
])