0
后请求存储数据我想将用户重定向到有错误的登录页面和提示信息。如何重定向和重定向
目前我在做这个:
return $this->container->view->render($response,'admin/partials/login.twig',['errorss'=>$errors]);
但我想重定向到登录页面,同时还具有errror消息和提示信息。我想这样,但不工作:
$this->container->flash->addMessage('fail',"Please preview the errors and login again.");
return $response->withRedirect($this->container->router->pathFor('admin.login',['errors'=>$errors]));
expaining此谢谢@jmattheis,我也看看修身文档,但无法理解,因为我是扫描重定向包括数据(知道我应该避免只扫描)。但现在我明白了它的工作方式..再次感谢:) .. – ryan