我将一个可选参数传递给路由。
直到昨天这个工作, 突然得到这个错误
控制器代码
/**
* @Route("/usersFbVideo",name="_create_fb_social_gration")
* @Template()
*/
public function usersFbVideoAction(Request $request, $call_from=null,&$user_visiting_card_path=null)
{
......
}
函数从.html.twig文件提交代码
<form id="create_my_video" method="post" action="{{ path('_create_fb_social_gration')}}"> </form>
<div class="popupBg"></div>
<div class="popupBox small">
<div class="popup-content">
Please wait, we are processing your request
</div>
</div>
{% endblock %}
{% block javascripts %}
<script>
$(document).ready(function(){
$("form").submit();
});
</script>
{% endblock %}