O'Reilly logo

Yii Project Blueprints by Charles R. Portwood II

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

Enabling users to manage their information

In the previous chapters, our users haven't been able to do much besides interacting with content. In this chapter, we'll be expanding upon the base User model so that they can register with our application, securely activate their accounts, reset their passwords if they forget them, and change their e-mail address.

Upgrading our UserIdentity class

Before implementing the previously mentioned functionality, we need to make sure that we can address our users appropriately without having to ask our database for some basic information about the currently logged-in user. To do this, we're going to add some information to our UserIdentity.php file located at protected/components/ as shown next in the highlighted ...

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