Questions tagged [namespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
215 views

Loading a helper file in Joomla 4

I'm having trouble with using a helper file in Joomla 4, I'm not really sure where I'm going wrong. I have a helper file in my template, like templates/mytemplate/html/helper.php and this works well ...
user avatar
0 votes
1 answer
81 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....
user avatar
  • 7,685
2 votes
2 answers
183 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=...
user avatar
0 votes
1 answer
70 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 ...
user avatar
  • 395
0 votes
1 answer
74 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&...
user avatar
1 vote
0 answers
201 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://...
user avatar
1 vote
1 answer
214 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 ...
user avatar
0 votes
0 answers
133 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. ...
user avatar
2 votes
1 answer
557 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/...
user avatar
  • 1,089