Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $model = new Contact();
- if ($model->load(Yii::$app->request->post()) && $model->validate()) {
- // do something here
- Yii::$app->session->setFlash('success', 'Send email');
- }
- ?>
- <!--Bikin popup di sini-->
- <div>
- <?php
- $form = ActiveForm::begin([]);
- ?>
- <?= $form->field($model, 'nama'); ?>
- <?= $form->field($model, 'email'); ?>
- <!-- dan lain-lain-->
- <div class="form-group">
- <?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement