Forum


Replies: 8   Views: 3879
Fatal error: cannot redeclare class fpdf joomla 3
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 23-06-2020 - 07:02

Hello,

Please check the documentation available on https://docs.joomla.org/Using_own_library_in_your_extensions , that details how to add and use external libraries with Joomla, including PHP namespace packages.

If you don't need to load the library in all pages, you could also include the main class and use it with the namespaces (using the namespaces package, not the classic one):

require_once 'path_to/Classes/Phpdocx/Create/CreateDocx.php';

$docx = new Phpdocx\Create\CreateDocx();

Regards.