*/
public function about(Request $request): Response {
//Set page
- $this->context['title'] = $this->translator->trans('About');
+ $this->context['title']['page'] = $this->translator->trans('About');
//Set description
$this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary about page');
*/
public function contact(Request $request): Response {
//Set title
- $this->context['title'] = $this->translator->trans('Contact');
+ $this->context['title']['page'] = $this->translator->trans('Contact');
//Set description
$this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary contact page');
//Create the form according to the FormType created previously.
//And give the proper parameters
$form = $this->createForm('Rapsys\BlogBundle\Form\ContactType', $data, [
- 'action' => $this->generateUrl('rapsys_blog_contact'),
+ 'action' => $this->generateUrl('rapsysblog_contact'),
'method' => 'POST'
]);
);
//Set title
- $this->context['title'] = $this->translator->trans('Home');
+ $this->context['title']['page'] = $this->translator->trans('Home');
//Set description
$this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary');