In this video you'll learn why PHP frameworks like Laravel and Symfony provide a base controller class that contains methods that are shared across different controllers. This makes the code more secure and easier to maintain.
This is the tenth in a series of videos that will teach you how frameworks work in PHP by building one step by step. In this project-based tutorial, I'll be doing this using modern standards, best practices and third party packages where necessary.
In order to follow along you need to already be familiar with basic PHP.
• Build a PHP Framework
☕ Support me: https://ko-fi.com/davehollingworth
🌐 Recommended host: https://davehollingworth.com/hosting
💻 Source code: https://github.com/daveh/php-framewor...
🌐 PHP-DI Controllers: https://php-di.org/doc/best-practices...
🌐 Symfony Base Controller: https://symfony.com/doc/current/contr...
00:00 Introduction
00:51 Remove repetition
03:51 First problem
05:56 Second problem
08:34 Property Injection
11:34 Conclusion
#PHP #framework #laravel #symfony
Nesta página do site você pode assistir ao vídeo on-line Build a PHP Framework: The Base Controller duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dave Hollingworth 28 Outubro 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,713 vezes e gostou 109 espectadores. Boa visualização!