Hot answers tagged

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 ...
Sharky's user avatar
  • 10.8k
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 ...
Irata's user avatar
  • 3,597
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. ...
Irata's user avatar
  • 3,597

Only top scored, non community-wiki answers of a minimum length are eligible