Laravel Crash Course - Working with Views

Опубликовано: 24 Март 2021
на канале: TutsPrime
169
4

Laravel is PHP framework which implement MVC or "Model View Controller" architecture.

In MVC architecture, View is a representation layer for user to interact with our application. It will render data from the model into a form that is suitable for the user interface.

In Laravel we can create our view in two formats:

Plain php, or
Blade template

The difference between these two formats is in the filename. Plain php is in .php extension and it will be rendered with the PHP engine, while blade is in .blade.php extension, and it will be rendered with the Blade engine.

Blade engine will then compile our blade template and produce a plain php file.

In this video we'll learn how to return HTML response to the client using Views. We'll also learn how to passing data to the views.


Смотрите видео Laravel Crash Course - Working with Views онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TutsPrime 24 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16 раз и оно понравилось людям.