Summary
In this chapter, we discussed about the user interface and how Yii helps us with its core functionalities. The first important tool that Yii provides is Gii, which facilitates CRUD actions and views' creation, which we used in Gii to manage rooms, reservations, and customers, for example.
Next we saw how to embed JavaScript and CSS in a layout and views, with file content or an inline block. This was applied to an example that showed you how to change the number of columns displayed based on the browser's available width; this is typically a task for websites or web apps that display advertising columns.
Again on the subject of JavaScript, you learned how to implement direct AJAX calls, taking an example where the reservation detail was dynamically loaded from the customers drop-down list.
Next we looked at Yii's core user interface library, which is built on Bootstrap and we illustrated how to use the main Bootstrap widgets natively, together with DatePicker (probably the most commonly...