form in yii2 without model

hi i would like to create a form in yii2 without using model is there any possibilites.

thank you

Hi!

Why do you want a form without model? …

Models make things like validation etc a lot easier.

Read:

http://www.yiiframework.com/doc-2.0/guide-start-forms.html

But you COULD for example just code a simple HTML form ans send it to a specific controller action.

Like:




<form action="conntrolerAction">

First name:<br>

<input type="text" name="firstname" value="Mickey">

<br>

Last name:<br>

<input type="text" name="lastname" value="Mouse">

<br><br>

<input type="submit" value="Submit">

</form> 



OR you use the HTML helper function from Yii to generate the form without model:

http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html

Regards

thanks