After save in database, I want to send an email confirmation. I'm using SwiftMailer and here is the problem... The email has been sent, but dont show the view after send email, appears an empty view, but the email works fine, i have receive the email. It seems like after send email, the program stop.
$mail = new Mail(); $params = [ 'name' => 'Test', 'link' => "https://localhost/novo-projeto/user/login" ]; $mail->send($email, 'signup', $params); $this->view->pick('layouts/usuario_confirmacao/confirmar_cadastro');