Hello to all!
I've created a Magento2 module that shows a page in the admin panel (under a specific menu item in content section).
when I enter echo "hello world"; in the file app/code/Myname/Mymodule/Block/Landingpage.php
I see the page correctly,
but when I call up a namespace like this:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL | E_STRICT);
require '../../PHP_SDK/ebay-sdk-php-autoloader.php';
$config = require '../../configuration.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService([
...
]);
?>
I get this error message:
<<
There has been an error processing your request
Object DOMDocument should be created.
>>
You know why? Can you help me?
Many thanks!!!