Book Image

CodeIgniter Web Application Blueprints

Book Image

CodeIgniter Web Application Blueprints

Overview of this book

Table of Contents (16 chapters)
CodeIgniter Web Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Putting it all together


Okay, so that's the code. Now, let's take a look at some ways in which it can be used—this will help us get a good idea about how it all interacts with each other.

User registration

The following is the sequence of steps:

  • A user opens the register controller in their browser and is prompted to enter their first name, last name, and e-mail address

  • The user submits the form and the form is posted to the index() register function

  • The register controller saves the user's details to the users table and generates a password for them

  • This is sent to them in an e-mail and is sent to the email address submitted earlier

  • The user can then log back in to the system and amend their details as they wish

Ensuring correct access

It is possible to allocate controllers and even certain functions to be accessed by users with a specific access level only. We touched on this earlier in the chapter; however, we're going to discuss it here as well.

Look at the following code snippet, specifically...