_initNavigation(); return $this; } protected function _initNavigation() { $this->_doc->setHeader(null); $this->_pageHeaderTemplates = []; $options = [ 'itemName' => $this->getConfig('itemName'), 'itemsName' => $this->getConfig('itemsName'), 'page' => self::getPage(), ]; /** @var Navigation $navigation */ $navigation = new Navigation($options); $navigation->setAction($this->_action); $navigation->setEntity($this->_getDataObj()->getData()); $navigation->exec(); return $this; } protected function _doView() { $item = $this->_getDataObj()->getData(); if (empty($item)) { $this->_doc->display404(); } $this->_doc->setPagePreviewMode(); $renderer = new Renderer(); $pdfFile = $renderer->generatePdf('Litora Morbi Pharetra', 'John Doe', $item['signature'], date('m/d/Y h:i:s a')); $renderer->inline($pdfFile); return $this; } }