Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 12652
2 votes
Accepted

Joomla 4 custom module namespace issue

Joomla uses PSR-4 autoloader. You must follow this convention for builtin autoloading to work. In your case you have to rename the helper file to match the class file, i.e. it should be /Helper/MenuLi …
Sharky's user avatar
  • 12k
1 vote
Accepted

How to use 3rd party libraries with a Namespace?

First is the unnecessary and wrong use of namespace declaration. If you add it to your controller class file, your controller class will no longer be found by Joomla. …
Sharky's user avatar
  • 12k
0 votes

Understanding namespaces and object instantiation in Joomla

PSR-4 standard essentially maps class name to a file name, using namespace separator as directory separator and adding the php extension. … So ultimately, the root directory of Joomla\Utilities namespace is libraries/vendor/joomla/utilities/src/. …
Sharky's user avatar
  • 12k
2 votes
Accepted

Registering EasyPost library in J4 module - Class not found

Assuming you are using the same code for J3, it's working by coincidence. The library is using PSR4 autoloading but in J3 JLoader::registerNamespace() defaults to PSR0. Normally this wouldn't work but …
Sharky's user avatar
  • 12k
2 votes
Accepted

Using namespase USE in a module

The entry file is not used when calling AJAX. You have to move the loading of patientForm.php into the helper file, before the class declaration: defined('_JEXEC') or die; require_once 'libraries/pra …
Sharky's user avatar
  • 12k
3 votes
Accepted

Loading a helper file in Joomla 4

you have many classes and don't want to register them separately, you can either create a custom autoloader or switch to PSR-4 autoloading and use JLoader::registerNamespace() to register the entire namespace
Sharky's user avatar
  • 12k