[2/9] - Beginners Symfony 4 Tutorial - Make Your Own Controller
Автор: Code Review Videos
Загружено: 2018-02-07
Просмотров: 33435
Описание:
Find the full write up here :
https://www.codereviewvideos.com/cour...
Towards the end of the previous video we had created a single route which, when accessed, would render out the contents of our template (e.g. the hello_page.html.twig), and return that as the body of the Response.
Whilst we didn't need to create our own Controller class, or controller method (in prior Symfony versions most often called an Action) to make this work, we did use a Symfony provided Controller (TemplateController) and Action (templateAction) behind the scenes.
I also mentioned that in 99% of cases, you would likely not work in this way, in the real world.
Still, it is interesting to know of this feature, and also it saved us from having to do anything more than we otherwise had to, in order to get started.
Lets now create our own Controller class, and in that controller we will create our very first controller Method.
Повторяем попытку...
![[2/9] - Beginners Symfony 4 Tutorial - Make Your Own Controller](https://ricktube.ru/thumbnail/yz56pv8fi_c/hq720.jpg)
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: