Skip to content

Commit

Permalink
Template Path Added
Browse files Browse the repository at this point in the history
  • Loading branch information
cesurapp committed Nov 22, 2019
1 parent 702061d commit 5e8e06a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Controller/MailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function list(Request $request, PaginatorInterface $paginator): Response
$this->get('session')->set('backUrl', $request->getRequestUri());

// Render Page
return $this->render($this->getParameter('pd_user.template_path') . '/list.html.twig', [
return $this->render($this->getParameter('pd_mailer.template_path') . '/list.html.twig', [
'templates' => $pagination,
'base_template' => $this->getParameter('pd_mailer.base_template'),
]);
Expand Down Expand Up @@ -118,7 +118,7 @@ public function addTemplate(Request $request, ParameterBagInterface $bag, $id =
}

// Render Page
return $this->render($this->getParameter('pd_user.template_path') . '/template.html.twig', [
return $this->render($this->getParameter('pd_mailer.template_path') . '/template.html.twig', [
'form' => $form->createView(),
'objects' => @unserialize($mailLog->getBody()),
'title' => 'mail_manager_template_add',
Expand Down Expand Up @@ -166,7 +166,7 @@ public function editTemplate(Request $request, ParameterBagInterface $bag, $id):
}

// Render Page
return $this->render($this->getParameter('pd_user.template_path') . '/template.html.twig', [
return $this->render($this->getParameter('pd_mailer.template_path') . '/template.html.twig', [
'form' => $form->createView(),
'objects' => @unserialize($mailTemplate->getTemplateData()),
'title' => 'mail_manager_template_edit',
Expand Down Expand Up @@ -297,7 +297,7 @@ public function logger(Request $request, PaginatorInterface $paginator): Respons
);

// Render Page
return $this->render($this->getParameter('pd_user.template_path') . '/logger.html.twig', [
return $this->render($this->getParameter('pd_mailer.template_path') . '/logger.html.twig', [
'maillogs' => $mailLog,
'base_template' => $this->getParameter('pd_mailer.base_template'),
]);
Expand Down

0 comments on commit 5e8e06a

Please sign in to comment.