Chapter 7. Using Zii Components

In this chapter, we will cover:

  • Using data providers
  • Using grids
  • Using lists
  • Creating custom grid columns

Introduction

Yii has a useful library called Zii. It's bundled with the framework and includes some classes aimed at making the developer's life easier. Its most handy components are grids and lists, which allow you to build data in both the admin and user parts of a website in a very fast and efficient way. In this chapter you'll learn how to use and adjust these components to fit your needs. Also you'll learn about data providers, they are part of the core framework (not Zii) but since they are used extensively with grids and lists, we'll review them here.

We'll use the Sakila sample database Version 0.8 available at the official MySQL website:

http://dev.mysql.com/doc/index-other.html

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.233.72