]> Raphaël G. Git Repositories - blogbundle/blobdiff - Controller/DefaultController.php
Update translations for new context layout
[blogbundle] / Controller / DefaultController.php
index 6333b45e75f5a35670d8697d787c97b86566de21..bb87b9bf6a3f4b75a6ae1e7cee80e9c46349a1e5 100644 (file)
@@ -33,7 +33,7 @@ class DefaultController extends AbstractController {
         */
        public function about(Request $request): Response {
                //Set page
         */
        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');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary about page');
@@ -74,7 +74,7 @@ class DefaultController extends AbstractController {
         */
        public function contact(Request $request): Response {
                //Set title
         */
        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');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary contact page');
@@ -99,8 +99,8 @@ class DefaultController extends AbstractController {
 
                //Create the form according to the FormType created previously.
                //And give the proper parameters
 
                //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'),
+               $form = $this->createForm('Rapsys\PackBundle\Form\ContactType', $data, [
+                       'action' => $this->generateUrl('rapsysblog_contact'),
                        'method' => 'POST'
                ]);
 
                        'method' => 'POST'
                ]);
 
@@ -261,7 +261,7 @@ class DefaultController extends AbstractController {
                );
 
                //Set title
                );
 
                //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');
 
                //Set description
                $this->context['description'] = $this->translator->trans('Welcome to raphaël\'s developer diary');