public function login_action() { $login = LoginModel::Login(); if ($login) { Teleport::to('account/my-account/'); } else { Teleport::to('account/log-in/'); } }