Hi everybody,
I am using vokuro and volt.
The login module is still the vokuro standard, but how can I set the user data into multiple views?
something like:
{{user.id}}
doesn't work.
public function loginAction()
{
$form = new LoginForm();
try {
if (!$this->request->isPost()) {
if ($this->auth->hasRememberMe()) {
return $this->auth->loginWithRememberMe();
}
} else {
if ($form->isValid($this->request->getPost()) == false) {
foreach ($form->getMessages() as $message) {
$this->flash->error($message);
}
} else {
$this->auth->check(array(
'email' => $this->request->getPost('email'),
'password' => $this->request->getPost('password'),
'remember' => $this->request->getPost('remember')
));
return $this->response->redirect('users');
}
}
} catch (AuthException $e) {
$this->flash->error($e->getMessage());
}
$this->view->form = $form;
}
Rgds
Stefan