Creating the Active Record model classes
Now that we have these tables created, we need to create the Yii AR model classes to allow us to easily interact with these tables within the application. We did this when creating the Project.php model class in Chapter 5, Iteration 2: Project CRUD using the Gii code generation tool. We'll remind you of the steps again here, but spare you of all the screenshots. Please refer back to Chapter 5 for a more detailed walkthrough of using the Gii tool.
Creating the Issue model class
Navigate to the Gii tool via http://localhost/trackstar/in
dex.php?r=gii, and choose the Model Generator link. Leave the table prefix as tbl_. Fill in the Table Name field as tbl_issue, which will auto-populate the Model Class field as Issue.
Once the form is filled out, click the Preview button to get a link to a popup that will show you all of the code about to be generated. Then click the Generate button to actually create the new Issue.php model class in the /protected/models...