New answers tagged

1 vote

Migrating custom module to Joomla 4

$input = $app->input; is deprecated too. You should use in Joomla 4 $input = $app->getInput(); instead. Also you can load database form DI container by this code: use Joomla\Database\...
3 votes

Migrating custom module to Joomla 4

Lodder's answer is fully valid, however he did not want to waste time to reformulate the query part of this old script in the question. As a morning drill during my coffee time I corrected that part ...
  • 2,541
3 votes

Migrating custom module to Joomla 4

JRequest was deprecated in Joomla 2.5 (I think), so you can now use JInput, like so: use Joomla\CMS\Factory; $db = Factory::getDbo(); $input = Factory::getApplication()->input; $id = $input->...
  • 26.7k

Top 50 recent answers are included