Questions tagged [libraries]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
67 views

Sharing a MVC resources library between two components

Lets say my component is called dumbo. It contains all kind of MVC stuff and works well. Now i have a second component that is called jumbo. I need both components to share some models, controllers ...
0
votes
2answers
42 views

What directory should contain GPL scripts from external source? Best practice?

I am making a custom gallery module using Light Gallery. In most cases, I would just place all my JS files inside /assets/js directory. But I wonder if this is good practice when using an external ...
1
vote
1answer
31 views

Joomla Framework folder “libraries” missing

I'm having difficulties when trying to implement the example given on https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application#Examples I'm trying to do the first example and I'm getting ...
0
votes
1answer
41 views

Creating a Library with multiple classes within a single file

I am trying to incorporate an external application as a library within Joomla which I have done before on a couple of occasions, however in this case there is a single .php file with about 20 classes ...
0
votes
0answers
40 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. ...
1
vote
1answer
80 views

Load language files inside custom library

I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory:...
0
votes
1answer
363 views

How to use external PHP library in Joomla! CLI application - Class not found

I'm working on a custom Joomla! CLI application and would like to rely on an external PHP library to reuse some functionality. // Set flag that this is a parent file. const _JEXEC = 1; ...
1
vote
1answer
41 views

How does Joomla initialise all active libraries and plugins?

I'm trying to import Joomla in a Yii application. It goes well, but some plugins and libraries are not loaded. Does anyone know how to achieve this? Something like JPluginHelper::loadAllActivePlugins(...
4
votes
1answer
904 views

Using external library with a component

My component is using phpExcel library; I put it into /libraries/phpexcel/Classes. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it ...
1
vote
1answer
66 views

Including extension configuration for a library

Am I guessing right that <config> in manifest file for a Joomla library is not supported? Only for modules, components, templates and plugins?
2
votes
1answer
141 views

How stop update/installation by install script and mantain actual folder?

I found by Joomla 3.x, that I can use an install script something like this: class lib_exampleInstallerScript { public function install($adapter) { // during install } ...
1
vote
2answers
454 views

Edit Joomla 3.x library file (to customize form validation error messages)

I want to change some lines in this Joomla's 3.6.5 library file: C:\xampp\htdocs\joomla\libraries\joomla\form\form.php I searched many places to find out how to do this, but unfortunately there ...
1
vote
2answers
82 views

Joomla got hacked. Is it safe to replace the entire library directory

the site is very old. version 3.3.0. I don't know if the libraries folder is ever supposed to have anything changed in it or if it would be safe to just delete that directory and upload a new ...
1
vote
2answers
207 views

Popup window for a custom backend button

I have created a custom backend button (JToolbarHelper::custom()), when a user clicks the button it shows a popup window with some content. How can I do so, not using JToolbarHelper::preview() as this ...
0
votes
1answer
1k views

Is it possbile to create custom library with namespace

It is possible to create library package with namespace as below? namespace Main{ class PrefixFolderLib1{ //functions } } Not sure how the JLoader will understand the namespace.
2
votes
1answer
726 views

Manifest file format for installing a Library package

I cant't able to find a Joomla help page explaining how a library type extension can be installed. Joomla Manifest Files I refer the above URL and don't find any further explanation on library ...