To access the data we need to create a model class. You can make this using the built-in Web-based code generator.
For more details of such generating, read the Creating Your First Yii Application article of the framework documentation.