/** * @return \yii\db\ActiveQuery */ public function getPublisher() { return $this->hasOne(Publisher::className(), ['id' => 'publisher_id']); }
?> <?php echo $form->field($modelBook, 'issn')->textInput(['maxlength' => 20, 'placeholder' => '8881837188']); ?> <?php echo $form->field($modelBook, 'page_count')->textInput(); ?> <?php echo $form->field($modelBook, 'language_id')->dropDownList(BookForm::createArrayMap(Language::className(), 'id', 'name')); ?> <?php echo $form->field($modelBook, 'publisher_id')->dropDownList(BookForm::createArrayMap(Publisher::className(), 'id', 'name')); ?> <?php echo $form->field($modelBook, 'type_id')->dropDownList(BookForm::createArrayMapTranslate(Type::className(), 'id', 'type')); ?> <?php echo $form->field($modelBook, 'status_id')->dropDownList(BookForm::createArrayMapTranslate(Status::className(), 'id', 'status')); ?> <?php echo $form->field($modelBook, 'category_id')->dropDownList(BookForm::createArrayMapTranslate(Category::className(), 'id', 'category_name')); ?> <?php