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

Authorized Entry Only

We have made a fully functional game. It should now be pointed out that we made it with Srbac in debug mode, and we should now lock it down so only logged in users can play. We don't want anyone to be able to go to the create URL page and arbitrarily create games and consume server resources. We are quickly going to walk through this, but it is covered fully in Project 4, Level Up! Permission Levels. You might want to refer back if you have questions.

Prepare for Lift Off

We have been developing in debug mode. Turn off debug mode in the srbac array in protected/config/main.php.

 'srbac' => array( 'userclass'=>'User', //default: User 'userid'=>'id', //default: userid 'username'=>'username', //default:username 'delimeter'=>'@', ...

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