New answers tagged custom-module
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
Related Tags
custom-module × 101joomla-3.x × 38
module × 23
php × 14
custom-component × 11
module-params × 8
css × 7
development × 6
articles × 6
plugin × 4
javascript × 4
custom-field × 4
ajax × 4
installation × 4
module-display × 4
xml × 4
joomla-4.x × 4
templates × 3
extensions × 3
user × 3
administrator × 3
menu-item × 3
joomla-3.5 × 3
emails × 3
variable × 3