duplicating templates with blank space in the name
When we duplicate a template and we use blank space in the new template name, like 'new template' there will be created tplnew-template as a abstract class name in the template.php file. Unfortunately it lead to the following fatal error at the front-end:
0 syntax error, unexpected token "-", expecting "{"
- Call stack
-
- 1 () JROOT/components/com_sobipro/usr/templates/nowy-szablon/template.php:38
- 2 SPFrontView->registerFunctions() JROOT/components/com_sobipro/lib/views/view.php:323
- 3 SPFrontView->display() JROOT/components/com_sobipro/lib/views/section.php:753
- 4 SPSectionView->display() JROOT/components/com_sobipro/lib/ctrl/section.php:150
- 5 SPSectionCtrl->view() JROOT/components/com_sobipro/lib/ctrl/controller.php:229
- 6 SPController->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:578
- 7 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
- 8 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
- 9 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
- 10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
- 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
- 12 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
- 13 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
- 14 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
- 15 require_once() JROOT/index.php:32