Now that we've set up our base project, we can really get started with the Yii framework. Since non-static data is typically stored in models, we'll begin by creating a chart from the model data.
To set up the basic Yii project, refer to the Setting up a simple Yii Project recipe from this chapter.
Perform the following steps to create a chart from the model data:
example_app/protected/data/testdrive.dbusing the following command:
CREATE TABLE tbl_monster ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name VARCHAR(32) NOT NULL, height REAL, weight REAL, hp INTEGER, attack INTEGER, ...