Loading module/Application/src/Application/Controller/TheseController.php +2 −2 Changes for module/Application/src/Application/Controller/TheseController.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ use Zend\Form\Element\Hidden; use Zend\Http\Response; use Zend\Stdlib\ParametersInterface; use Zend\View\Model\ViewModel; use Application\Service\These\PageDeGarde\PageDeGardePdfExporter; use Application\Service\These\PageDeGarde\PageDeCouverturePdfExporter; class TheseController extends AbstractController implements VariableServiceAwareInterface , Loading Loading @@ -1367,7 +1367,7 @@ class TheseController extends AbstractController implements { $these = $this->requestedThese(); $renderer = $this->getServiceLocator()->get('view_renderer'); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ $exporter = new PageDeGardePdfExporter($renderer, 'A4'); $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, ]); Loading module/Application/src/Application/Service/These/PageDeGarde/PageDeGardePdfExporter.php→module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php +2 −2 Changes for module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use UnicaenApp\Exporter\Pdf as PdfExporter; use Zend\View\Renderer\PhpRenderer; use Zend\View\Resolver\TemplatePathStack; class PageDeGardePdfExporter extends PdfExporter class PageDeCouverturePdfExporter extends PdfExporter { private $vars; Loading @@ -30,7 +30,7 @@ class PageDeGardePdfExporter extends PdfExporter $this->addBodyHtml('<style>' . file_get_contents(APPLICATION_DIR . '/public/css/page-unicaen.css') . '</style>'); $this->setHeaderScript('empty.phtml'); $this->setFooterScript('empty.phtml'); $this->addBodyScript('pagedegarde.phtml', false, $this->vars); $this->addBodyScript('pagedecouverture.phtml', false, $this->vars); return PdfExporter::export($filename, $destination, $memoryLimit); } } No newline at end of file module/Application/src/Application/Service/These/PageDeGarde/pagedegarde.phtml→module/Application/src/Application/Service/These/PageDeGarde/pagedecouverture.phtml File moved. View file Loading
module/Application/src/Application/Controller/TheseController.php +2 −2 Changes for module/Application/src/Application/Controller/TheseController.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ use Zend\Form\Element\Hidden; use Zend\Http\Response; use Zend\Stdlib\ParametersInterface; use Zend\View\Model\ViewModel; use Application\Service\These\PageDeGarde\PageDeGardePdfExporter; use Application\Service\These\PageDeGarde\PageDeCouverturePdfExporter; class TheseController extends AbstractController implements VariableServiceAwareInterface , Loading Loading @@ -1367,7 +1367,7 @@ class TheseController extends AbstractController implements { $these = $this->requestedThese(); $renderer = $this->getServiceLocator()->get('view_renderer'); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ $exporter = new PageDeGardePdfExporter($renderer, 'A4'); $exporter = new PageDeCouverturePdfExporter($renderer, 'A4'); $exporter->setVars([ 'these' => $these, ]); Loading
module/Application/src/Application/Service/These/PageDeGarde/PageDeGardePdfExporter.php→module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php +2 −2 Changes for module/Application/src/Application/Service/These/PageDeGarde/PageDeCouverturePdfExporter.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use UnicaenApp\Exporter\Pdf as PdfExporter; use Zend\View\Renderer\PhpRenderer; use Zend\View\Resolver\TemplatePathStack; class PageDeGardePdfExporter extends PdfExporter class PageDeCouverturePdfExporter extends PdfExporter { private $vars; Loading @@ -30,7 +30,7 @@ class PageDeGardePdfExporter extends PdfExporter $this->addBodyHtml('<style>' . file_get_contents(APPLICATION_DIR . '/public/css/page-unicaen.css') . '</style>'); $this->setHeaderScript('empty.phtml'); $this->setFooterScript('empty.phtml'); $this->addBodyScript('pagedegarde.phtml', false, $this->vars); $this->addBodyScript('pagedecouverture.phtml', false, $this->vars); return PdfExporter::export($filename, $destination, $memoryLimit); } } No newline at end of file
module/Application/src/Application/Service/These/PageDeGarde/pagedegarde.phtml→module/Application/src/Application/Service/These/PageDeGarde/pagedecouverture.phtml File moved. View file