I used code vokuro master
Tag::setTitle('Forgot my password');
$form = new ForgotPasswordForm();
if ($this->request->isPost()) {
if ($form->isValid($this->request->getPost()) == false) {
foreach ($form->getMessages() as $message) {
$this->flash->error($message);
}
} else {
$user = Users::findFirstByEmail($this->request->getPost('email'));
if (!$user) {
$this->flash->success('There is no account associated to this email');
} else {
$resetPassword = new ResetPasswords();
$resetPassword->usersId = $user->id;
if ($resetPassword->save()) {
$this->flash->success('Success! Please check your messages for an email reset password');
} else {
foreach ($resetPassword->getMessages() as $message) {
$this->flash->error($message);
}
}
}
}
}
$this->view->form = $form;
When i submit form. It sends mail successfully. But not return page. It return blank page not call file views
I see if comment code below. It worked. $this->getDI() ->getMail() ->send(array( $this->user->email => $this->user->name ), "Reset your password", 'reset', array( 'resetUrl' => '/reset-password/' . $this->code . '/' . $this->user->email ));