/** * Use this to parse your backend page * * You will get the template located in /View/Template/{CMD}.html * You can access Cx class using $this->cx * To show messages, use \Message class * @param \Cx\Core\Html\Sigma $template Template for current CMD * @param array $cmd CMD separated by slashes */ public function parsePage(\Cx\Core\Html\Sigma $template, array $cmd) { global $_ARRAYLANG, $objInit; $objTpl = new \Cx\Core\Html\Sigma($this->getDirectory(true) . '/View/Template/Backend'); //merge language $langData = $objInit->loadLanguageData('Pdf'); $_ARRAYLANG = array_merge($_ARRAYLANG, $langData); $objTpl->setGlobalVariable($_ARRAYLANG); $objTpl->loadTemplatefile('Default.html'); // Not an entity, parse overview or settings switch (current($cmd)) { default: // Parse entity view generation pages $entityClassName = $this->getNamespace() . '\\Model\\Entity\\PdfTemplate'; $this->parseEntityClassPage($objTpl, $entityClassName, 'PdfTemplate'); if ($objTpl->blockExists('overview')) { $objTpl->touchBlock('overview'); } break; } \JS::registerCSS(substr($this->getDirectory(false, true) . '/View/Style/Backend.css', 1)); $template->setVariable(array('CONTENT_TITLE' => $_ARRAYLANG['TXT_CORE_MODULE_PDF'], 'ADMIN_CONTENT' => $objTpl->get())); }