DEV Community

Discussion on: The five SOLID principles and why you should use them in your codebase

Collapse
 
kvuluong profile image
kvu-luong • Edited

With the second principle, Could you give me the simple code for apply this method. I had try it by my self. However, I'm not figure it out how it work. These image below show the code I implemented. How to write code to checking authentication in index.php. Link dev-to-uploads.s3.amazonaws.com/i/...