Chapter 7. Working on the User Interface
In this chapter, you will discover how powerful Gii is as a tool. It provides support for CRUD actions, as well as creating a controller and its respective views.
We will cover the following topics related to the user interface in this chapter:
Using Gii to generate create, read, update, and delete (CRUD) actions:
For example – using CRUD to manage rooms, reservations, and customers using Gii
Customizing JavaScript and CSS:
For example – using JavaScript and CSS to display advertising columns that disappear if there is not enough space available
Using AJAX:
For example: reservation details loaded from customers' drop-down lists
Using the Bootstrap widget:
For example – using datepicker
Viewing multiple models in the same view:
For example – saving multiple customers at the same time
Saving linked models in the same view:
For example – creating a customer and reservation in the same view
It is now time for you to learn what Yii2 supports in order to customize the...