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

Joomla! 4.x Coding • LayoutHelper::render('joomla.searchtools.default', array('view' => $this)) results in an error.

$
0
0
Hello,

I am working with the MyWalks demo example while learning Joomla. It is a great demo component where things come nicely together.

I, however, stumbled upon the following problem.

Adding this line

Code:

<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>

to default.php in one of my view templates gives the following error

An error has occurred.

0 Call to a member function getGroup() on null

Call stack
# Function Location
1 () JROOT\layouts\joomla\searchtools\default\bar.php:29
...
...
Any hint what may be wrong? I have set up a model and associated view files. I can fetch and display all items nicely in a table but adding the above line crashes the view.

Thanks!

Statistics: Posted by JanoD — Mon Jun 03, 2024 5:14 pm



Viewing all articles
Browse latest Browse all 1543

Trending Articles





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