admin管理员组文章数量:1208155
I disabled twig as I want to use html/php template files and knockout.
In my action i attempt to save the user and return the profile view template and to send the user data to the view.
try {
$entityManager->persist($user);
$entityManager->flush();
return $this->render('user/profile.php', [
'user' => $user
]);
}
Everything works fine but in the image i attached, you can see that the content loads in the preview pane but not in the actual browser page and my actual browser page remains the same with all fields in tact and no redirection from the current page. I have tried on chrome as well and I experience the same issue.
I expected the rendered view template to be visible in the browser tab where I created the user.
本文标签:
版权声明:本文标题:symfony - I am returning a view from a controller. I can see the page in preview in the network tab but my browser page remains 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738730675a2109307.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论