O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating an Application Scaffold

Yii provides some great web-based scaffolding tools. Now that we have a schema in place, we can use those tools to provide basic access to our comic book objects.

Prepare for Lift Off

First, we have to update our application configuration to point to our database. Then we will enable Gii, Yii's graphical code generator. With Gii, we will generate scaffolding for each entity in our database. At the end, we will have a very basic, but functional, comic book database webapp.

Engage Thrusters

  1. Fire up NetBeans and go to the Projects window.
  2. Expand cbdb | Source Files | protected | config.

Updating Database Configuration

  1. Open main.php.
  2. Scroll down to the db section under components. You will see an active entry for the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required