Form Input Fields in Yii2.0

yii2-600

This article will explain the better way to use Form Input Fields in Yii2.0. Folder structure of ‘yii\widgets\ActiveForm’ class is used to create a form and ‘yii\helpers\Html’ class is used to display the different type of HTML input fields like buttons, textbox, checkbox, radio buttons, select box etc.

Start nad end the active Form

Imput field Text box

Input field Text Area

HTML5 input fields Email and password

Password input field.

HTML5 input field.

DropDown List Input Field

dropDownList() fuction create the select html tags.

File Upload Input field

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Article Tags: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.