Where to place logic of a custom component?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
oliwin4
Posts: 12
Joined: 16 Aug 2022, 08:36

Where to place logic of a custom component?

Post by oliwin4 » 21 Aug 2022, 19:37

I try to create a custom component. I can not find in docs where to place the logic of a new component and how to register it in core?

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

Re: Where to place logic of a custom component?

Post by aimeos » 22 Aug 2022, 06:21

The documentation for creating new components is available here:
https://aimeos.org/docs/latest/frontend ... omponents/

In Laravel, you have to implement a controller/action in app/Http/Controllers/ similar to this one:
https://github.com/aimeos/aimeos-larave ... roller.php

The template used by that controller must output the new view variables like here:
https://github.com/aimeos/aimeos-larave ... .blade.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply