);
//Set title
- $this->context['title'] = $this->translator->trans('Users list');
+ $this->context['title']['page'] = $this->translator->trans('Users list');
//Set description
$this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary user listing');
//With invalid slug
if ($slug !== $this->context['user']['slug']) {
//Redirect on correctly spelled user
- return $this->redirectToRoute('rapsys_blog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY);
+ return $this->redirectToRoute('rapsysblog_user_view', ['id' => $this->context['user']['id'], 'slug' => $this->context['user']['slug']], Response::HTTP_MOVED_PERMANENTLY);
}
//Set modified
);
//Set title
- $this->context['title'] = $this->context['user']['pseudonym'];
+ $this->context['title']['page'] = $this->context['user']['pseudonym'];
//Set description
//TODO: Add user creation ? Add a description field ?