Labels |
Added:
No Code Attached Yet
|
This should be closed as not related to CMS at all
@alehei3333333 please ask such questions in forum.joomla.org, this is for issues with the joomla core. So closing.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-01 08:26:10 |
Closed_By | ⇒ | chmst |
Wrote a trial component
schooltech.xml
`
`
admin/services/provider.php
registerServiceProvider(new MVCFactory('\\MuCompani\\Component\\SchoolTech')); $container->registerServiceProvider(new ComponentDispatcherFactory('\\MuCompani\\Component\\SchoolTech')); $container->set( ComponentInterface::class, function (Container $container) { $component = new MVCComponent($container->get(ComponentDispatcherFactoryInterface::class)); $component->setMVCFactory($container->get(MVCFactoryInterface::class)); return $component; } ); } }; ` admin/src/Controller/DisplayController.php ``
TEST
`I collect com_schooltech.zip in the archive, install it. When I try to enter the component in the admin panel, I get
"404 Could not find view [name, type, prefix]: schooltemplate, HTML, Administrator."
At the same time, with a stupid rewrite from the example at the link below, everything works fine. But it is worth trying to replace the values with those that I have and we get the above error. Am I misunderstanding something? Is there something not the name of files / folders, but something systemic?
https://mb4.ru/cms/joomla4/724-developing-a-basic-component-for-joomla-4.html