Summary
Keywords
Full Transcript
In this lesson, you will learn what the MVC pattern is, how it works and we will implement the basic parts of the MVC pattern. We'll refactor our existing code from previous lessons to use controllers & then implement views. We'll explore how an attacker could exploit certain functions/approaches that developers may take to gain access to sensitive information like database credentials & so on. SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL 👍 Smash the like button 🤝 Subscribe to the channel & turn the notifications on 💬 Post comments, any feedback is greatly appreciated ⭐ Become a Patreon: https://www.patreon.com/programwithgio THANK YOU! LESSON 2.27 Course Outline - https://github.com/ggelashvili/learnphptherightway-outline Course Playlist - https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe- CHAPTERS 00:00 - What is MVC 04:30 - Implementing basic MVC (Controllers & Views) 12:31 - Layout support (exercise) 14:46 - Pass params from the controller to views using variable variables or extract function 17:26 - Potential exploit with variable variables & extract function 19:55 - Overview of Models 21:02 - Where does validation belong, in Model or Controller?
