O'Reilly logo

Learning Phalcon PHP by Calin Rada

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

Developing an authentication system

There are always parts within your application that need to be protected. In this section, we will implement an authentication system that is partially based on the user tables that we created in the previous chapters, and we will use Phalcon's ACL component.

We are not going to reinvent the wheel, so parts of the HTML code are taken from the official Bootstrap website (http://getbootstrap.com). In addition, you can find parts of the PHP code in a plugin that I developed a long time ago and which can be found at https://github.com/calinrada/PhalconUserPlugin. That being said, let's start developing our authentication system.

The database structure

We will add a few more tables for users, and we will create new ...

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