«global-messages» 태그된 질문


6
magento 2 베타의 프런트 엔드에서 세션 메시지를 표시하는 방법
magento 2 모듈에 오류 또는 성공 메시지를 표시하고 싶습니다. 클래스 이름으로 프론트 엔드 컨트롤러를 확장했습니다 \Magento\Framework\App\Action\Action. 그런 다음 다음 코드를 사용하여 클라이언트를 홈페이지로 리디렉션합니다. $this->messageManager->addError($SomeMessage); $resultRedirect = $this->resultRedirectFactory->create(); $resultRedirect->setPath($base_path); 모든 것이 잘 작동하지만이 줄은 오류를 인쇄하지 않습니다. $this->messageManager->addError($SomeMessage);
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.