$this->flash['notice'] = $result['ErrMsg'];
$this->renderAction("login");
The flash content cannot display, how to send this flash's content to the Action Class, thank you :)
Flash will be shown on the next Request, flash_now on the same Request.
renderAction() does not start a new request, it simply delegates the response to a different action
$this->flash_now['notice'] = $result['ErrMsg'];
will work in your case.
1 to 2 of 2