Feteching data from repository

Questions around the TYPO3 integration and plugins
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!
NewUser
Posts: 8
Joined: 22 Mar 2017, 05:01

Feteching data from repository

Post by NewUser » 24 Mar 2017, 13:10

I would need to fetch certain details from mshop_catalog and mshop_product tables. Can I get the repository names of these for object injection??

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Feteching data from repository

Post by aimeos » 24 Mar 2017, 13:37

Aimeos doesn't use ExtBase for managing and retrieving data. That wouldn't be portable and too slow.
Instead, you should use the Aimeos managers to get the data you need:
https://aimeos.org/docs/Developers/Libr ... ging_items

To get the necessary Aimeos context in TYPO3, use

Code: Select all

$config = \Aimeos\Aimeos\Base::getConfig();
$context = \Aimeos\Aimeos\Base::getContext($config);
or if you extend from "Aimeos\Aimeos\Controller\AbstractController":

Code: Select all

$this->getContext();
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

NewUser
Posts: 8
Joined: 22 Mar 2017, 05:01

Re: Feteching data from repository

Post by NewUser » 24 Mar 2017, 13:57

Thank you. It was helpful.

Post Reply