Hello
I want to use ActiveForm to create new form but when i want to run the code its just return a codes.
<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
$this->title = 'Contact Form';
?>
<?php $form = Activeform::begin(); ?>
<? $form->field($model,'title'); ?>
<? $form->field($model,'content'); ?>
<? $form->field($model,'data_add'); ?>
<? Html::submitButton('submit'); ?>
<?php ActiveForm::end(); ?>