/** * Get path and filename for mail template * * @param string $fileName * @return string */ protected function getRelativeEmailPathAndFilename($fileName) { return TemplateUtility::getTemplatePath('Email/' . ucfirst($fileName) . '.html'); }
/** * Get standaloneview with default properties * * @param string $controllerName * @param string $extensionName * @param string $pluginName * @param string $format * @return StandaloneView */ public static function getDefaultStandAloneView($controllerName = 'New', $extensionName = 'Femanager', $pluginName = 'Pi1', $format = 'html') { /** @var StandaloneView $standAloneView */ $standAloneView = self::getObjectManager()->get(StandaloneView::class); $standAloneView->getRequest()->setControllerExtensionName($extensionName); $standAloneView->getRequest()->setPluginName($pluginName); $standAloneView->getRequest()->setControllerName($controllerName); $standAloneView->setFormat($format); $standAloneView->setLayoutRootPaths(TemplateUtility::getTemplateFolders('layout')); $standAloneView->setPartialRootPaths(TemplateUtility::getTemplateFolders('partial')); return $standAloneView; }