Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1523

Joomla! 4.x Coding • Re: How to fix error 00 Call to a member function get() on null ($listOrder)

$
0
0
You're passing the wrong namespace prefix in your service provider:

Code:

$container->registerServiceProvider(new MVCFactory('\\Joomla\\Component\\Faq'));$container->registerServiceProvider(new ComponentDispatcherFactory('\\Joomla\\Component\\Faq'));
Instead of your "$this->thing = $model->get<thing>();" lines you want "$this->thing = $this->get('<thing>');".
Please don't follow this advice. It's an ancient borderline magic method that only makes things harder to debug. It really should have been removed a long time ago.

Statistics: Posted by SharkyKZ — Thu Mar 28, 2024 6:29 am



Viewing all articles
Browse latest Browse all 1523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>