Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $phpWordPath = realpath(__DIR__ . '/lib/PhpOffice/PhpWord');
- if (file_exists($phpWordPath . '/Autoloader.php')) {
- require_once $phpWordPath . '/Autoloader.php';
- \PhpOffice\PhpWord\Autoloader::register();
- } else {
- throw new Exception(
- sprintf(
- "Could not find the PHPWord autoloader at '%s'. Please check your file paths.",
- $phpWordPath . '/Autoloader.php'
- )
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement