Questions tagged [namespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

How to use 3rd party libraries with a Namespace?

I need to use a library I found on Github in an existing component, but my near non-existent knowledge of NAMESPACE is making it impossible. To merge PDF files, I'm using the library at https://github....
2
votes
2answers
81 views

Use HTMLHelper::_ by calling a namespaced class

In my component under Joomla! 4.0, I have the following call which returns: error JHtml componentname not found. HTMLHelper::_( 'componentname.link', 'index.php?option=com_component&view=...
0
votes
1answer
67 views

How to check an extension is namespaced?

I'm working on namespaced templates feature and I came to the point where I need to check if an extension is namespaced or not. One possibility would be to load the templateDetails.xml file and check ...
0
votes
1answer
34 views

Set and Retrieve Array in Joomla Session Namespace [closed]

I have the need to use a namespace in session, so I am using the following to set the session: $session = JFactory::getSession(); $customOrder['items'][] = $itemArray; $session->set("order&...
1
vote
0answers
108 views

Namespace class of component not found in script.php during clean install of component

in file script.php of component made for Joomla! 4.0-beta2-dev the namespace isn't found : Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not foundClass The changes in script.php : https://...
1
vote
1answer
105 views

Library with namespace and autoloader example

I want to make a namespace for my Joomla components, but I can't find a clear example. I want to declare multiple classes in my namespace and use autoloading. For example: namespacebas\xml ...
0
votes
0answers
69 views

Load namespaced library from component in J!4

I'm using the latest build of J!4. I have a component that has library files under joomla_root\libraries\mycomponent but the namespaced files in this directory aren't loaded by Joomla! 4 autoloader. ...
2
votes
1answer
303 views

Joomla 4 namespacing and autoloading

I've added the namespace line to my manifest xml: <namespace>Mycompany\Component\Mycomponent</namespace> When I install the component, I'm not seeing any alias added to the libraries/...