[FIXED] Namespacing.
This commit is contained in:
parent
191d37b280
commit
f049c48c59
|
|
@ -59,7 +59,7 @@ In this case, you will have to register the autoloader.
|
|||
|
||||
```php
|
||||
require_once 'path/to/PhpWord/src/PhpWord/Autoloader.php';
|
||||
PhpOffice\PhpWord\Autoloader::register();
|
||||
\PhpOffice\PhpWord\Autoloader::register();
|
||||
```
|
||||
|
||||
## Basic usage
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ define('SCRIPT_FILENAME', basename($_SERVER['SCRIPT_FILENAME'], '.php'));
|
|||
define('IS_INDEX', SCRIPT_FILENAME == 'index');
|
||||
|
||||
require_once '../src/PhpWord/Autoloader.php';
|
||||
PhpOffice\PhpWord\Autoloader::register();
|
||||
\PhpOffice\PhpWord\Autoloader::register();
|
||||
|
||||
// Return to the caller script when runs by CLI
|
||||
if (CLI) {
|
||||
|
|
|
|||
|
|
@ -42,4 +42,4 @@ spl_autoload_register(function ($class) {
|
|||
});
|
||||
|
||||
require_once __DIR__ . "/../src/PhpWord/Autoloader.php";
|
||||
PhpOffice\PhpWord\Autoloader::register();
|
||||
\PhpOffice\PhpWord\Autoloader::register();
|
||||
|
|
|
|||
Loading…
Reference in New Issue