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

Chapter 6. Assets, Authentication, and ACL

We will make use of our Backoffice module for this chapter, since it will be the second module that we will develop.

We will cover the following topics in this chapter:

  • Assets management
  • Developing an authentication system
  • Securing the application using the Access Control List (ACL) component

Assets management

Before going further, I would like to introduce you to Phalcon's assets manager. This is a very useful component when you need to handle lots of assets (in general, CSS files, images, and JavaScript files). The service should already be available, and you can access it via DI using the following command:

$manager = $this->assets;

Otherwise, you can use the following command:

$manager = $this->getDI()->get('assets'); ...

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