I'm a newbie in yii2.
I have generated this code in gii using form generator
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Publikasi */
/* @var $form ActiveForm */
?>
<div class="publikasi">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'NIP') ?>
<?= $form->field($model, 'Tanggal') ?>
<?= $form->field($model, 'StatusPenulis') ?>
<?= $form->field($model, 'JudulPenelitian') ?>
<?= $form->field($model, 'BidangKajian') ?>
<?= $form->field($model, 'NamaJurnal') ?>
<?= $form->field($model, 'StatusJurnal') ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('app', 'Submit'), ['class' => 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div><!-- publikasi -->
when I run this code, the result come to the same page. my question is how can I see the data that i input to that form?
Aucun commentaire:
Enregistrer un commentaire