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

Managing users

Before we can begin working on issues, we first need to make sure that users can be both created and managed from within our application. In Chapter 3, Scheduled Reminders, we used a command-line tool to do this. In this chapter, we will create a complete user management tool from a web interface to supplement that tool.

Roles and authentication

Before we get into managing our users, let's take a look at how authentication and roles are handled within our application. Within the UserController and IssueController provided with the skeleton application is a more complex accessRules() method that has a new attribute added to it. Let's take a look at this method within UserController:

public function accessRules() { return array( array('allow', ...

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