Having more than one controller in one view in Symfony?

孤街醉人 提交于 2020-01-24 00:23:08

问题


Can someone explain to me about this? can we have more than one controller in one view (html.twig) in Symfony?

If it can using multiple controller in a view, how to use it? Can give me an example how to


回答1:


I'm guessing you want to use render. Here's the documentation & example:

http://symfony.com/doc/current/book/templating.html#embedding-controllers



来源:https://stackoverflow.com/questions/27810785/having-more-than-one-controller-in-one-view-in-symfony

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!