We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Proper way to make user authentication


I'm trying to implement a user authentication in my already huge website. The problem is that the way i have it right now is not that smart..

Is there a way to make a user role like, "Guest", "User", "Moderator", "Admin", "Owner"

And in one file, make them allow to view the roles view, but only the roles view? I've been looking into this:


But I dont think that it's the best way, when i use $this->view->pick('index')

Hope you can help! :-)

You can see the Vokuro Project. I use VOKURO for that.