isEnabled()) { $controller = $this->_request->getControllerName(); $action = $this->_request->getActionName(); require_once 'Scores/PagePrint.php'; $page = new PagePrint($controller, $action); if ($page->exportable('pdf')){ $layout = $this->_response->getBody(); $filename = $page->filename('pdf', $this->_request->getParams()); $content = preg_replace('@profil->path->pages; file_put_contents($c->profil->path->pages.'/'.$filename.'.html', $content); } } } }