---
title: "Discussion on \"Adding Registration Form Fields in Yii2\" | Hashnode"
description: "Discussion on \"Adding Registration Form Fields in Yii2\". Step 1: Update the Database\nAdd the new columns first_name and last_name to the users table in your database.\nStep 2: Update the Signup Form Model\nIn frontend/models/SignupForm.php, add the new fields to the rules section to make them required:\npubli..."
url: "https://hashnode.com/posts/adding-registration-form-fields-in-yii2/6698235093ce14854d51c7fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding Registration Form Fields in Yii2](https://blog.doubledeals.co.ke/adding-registration-form-fields-in-yii2?utm_source=hashnode&utm_medium=feed)

Step 1: Update the Database Add the new columns first\_name and last\_name to the users table in your database. Step 2: Update the Signup Form Model In frontend/models/SignupForm.php, add the new fields to the rules section to make them required: publi...

Jul 17, 2024 · 1 min read · blog.doubledeals.co.ke  
Read the article

-   [#registration-form](https://hashnode.com/tag/registration-form)
-   [#form-fields](https://hashnode.com/tag/form-fields)
-   [#yii2-guide](https://hashnode.com/tag/yii2-guide)
-   [#yii2-tips](https://hashnode.com/tag/yii2-tips)
-   [#yii2-customization](https://hashnode.com/tag/yii2-customization)
-   [#yii2](https://hashnode.com/tag/yii2)
-   [#php-framework](https://hashnode.com/tag/php-framework)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#form-handling](https://hashnode.com/tag/form-handling)

## Written by

[Dan Ong'udi](https://hashnode.com/@ongudidan)

@ongudidan · Ukunda, Diani, Kenya

  
[View profile](https://hashnode.com/@ongudidan)

Full stack developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
