Page 1 of 1

How to create new controller in aimoes shop

Posted: 11 Sep 2019, 12:43
by Charles
Hello all,

I am using aimeos shop in typo3, I am just beginner for creating the custom plugin in aimoes. My goal is to create a new controller which can be called from the root URL. But I do not succeed in the creation of a new controller. I have searched a lot but can't get the clear definition

Example : Root_url/index.php?controller=newcontroller&action=index

Please guide me for this implementation

Re: How to create new controller in aimoes shop

Posted: 11 Sep 2019, 16:29
by aimeos
What you want is to create a new TYPO3 extbase controller and create a plugin from that.
That's a bit difficult to explain so we will show you the code in the Aimeos extension you can copy/paste/adapt from ...

1.) Implement a new Extbase controller in your own extension (keep care about the correct directories):
https://github.com/aimeos/aimeos-typo3/ ... roller.php

2.) Set up autoloading correctly:
https://github.com/aimeos/aimeos-typo3/ ... on#L34-L39

3.) Add such a block to your ext_localconf.php to register your Extbase controller:
https://github.com/aimeos/aimeos-typo3/ ... hp#L47-L52