3
votes
Which line should PHP files in Joomla start with?
It makes no difference when used in extensions. But if you want to be technically correct, _JEXEC is the one to use. It's declared earliest, in the entry point file (i.e. index.php), and its sole ...
1
vote
How to conditionally display custom fields in template overrides
In your Joomla 3 example you are checking for the existence and contents of a specific property, value, in the &media array.
In your Joomla 4 example you are checking for the existence and content ...
1
vote
Export as Excel with PHPSpreadsheet as download how to keep Joomla Messages?
You could change the logic of your processing in the Model so that the spreadsheet is only presented if there is data retrieved to be displayed, in which case Closing the Application would make sense.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php × 787joomla-3.x × 334
mysql × 92
joomla-3.4 × 47
javascript × 45
module × 44
joomla-4.x × 43
joomla-2.5 × 39
component × 38
development × 33
articles × 26
joomla-api × 25
jquery × 25
extensions × 22
database × 22
ajax × 22
plugin × 21
templates × 20
custom-component × 18
sql × 18
xml × 18
rsform × 18
jdatabase × 17
css × 16
k2 × 16