How can i register JsonAdm Class from my extension?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How can i register JsonAdm Class from my extension?
Im trying to register a rewritten class in the jsonadm/customer.
How can i do this in the config?
Normally i could set a name => "myclass" but this is not working here.
So i tried it with the decorator but i failed also with that.
I know the class is working cause if i replace the standard.php in aimeos ext it is working.
But i wanna be able to update aimeos without problems.
File: typo3conf/ext/myext/Resources/Private/Extensions/myext/config/admin.php
How can i do this in the config?
Normally i could set a name => "myclass" but this is not working here.
So i tried it with the decorator but i failed also with that.
I know the class is working cause if i replace the standard.php in aimeos ext it is working.
But i wanna be able to update aimeos without problems.
File: typo3conf/ext/myext/Resources/Private/Extensions/myext/config/admin.php
Code: Select all
<?php
return [
'jqadm' => [ ],
'jsonadm' => [
'customer' => [
'decorators' => [
'global' => ['myclassname'],
],
'name' => 'myclassname',
],
],
];
Re: How can i register JsonAdm Class from my extension?
This should work if placed in "./config/admin.php":
The "depend" section in the "manifest.php" of your extension normally lists "ai-admin-jsonadm" too.
Code: Select all
<?php
return [
'jsonadm' => [
'customer' => [
'name' => 'Myclassname',
],
],
];
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How can i register JsonAdm Class from my extension?
Thank you admin, it works with name => myclass.
I dont know why it wasnt working before i just reuploaded the file again to webserver.
Maybe on uploading to webserver something went wrong.
Thanks
I dont know why it wasnt working before i just reuploaded the file again to webserver.
Maybe on uploading to webserver something went wrong.
Thanks