Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1477

Joomla! 5.x Coding • Re: Use third componet's class in my cli application

$
0
0
You need to load the namespace. I use some CommonMark stuff in a library in a component (probably a bad idea). Then I do this:

Code:

require JPATH_ROOT . '/administrator/components/com_jdocmanual/libraries/vendor/autoload.php';use League\CommonMark\Environment\Environment;

Statistics: Posted by ceford — Fri Mar 22, 2024 9:54 pm



Viewing all articles
Browse latest Browse all 1477

Trending Articles