新建的aimeos扩展插件,可以对aimeos 模版进行覆盖,那么控制器能覆盖掉吗?

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!
eastkingxu
Posts: 4
Joined: 13 Dec 2018, 08:06

新建的aimeos扩展插件,可以对aimeos 模版进行覆盖,那么控制器能覆盖掉吗?

Post by eastkingxu » 13 Dec 2018, 08:16

新建的aimeos扩展插件,可以对aimeos 模版进行覆盖,那么控制器能覆盖掉吗?这样弄的原因是想避免,aimeos插件更新升级的时候,自己在控制器中写的代码被覆盖。

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

Re: 新建的aimeos扩展插件,可以对aimeos 模版进行覆盖,那么控制器能覆盖掉吗?

Post by aimeos » 13 Dec 2018, 10:50

你能用英文写吗?

From Google translate:
The new aimeos extension can override the aimeos template, can the controller be overwritten? The reason for this is to avoid, when the aimeos plugin is updated, the code written in the controller is overwritten.

Yes and you shouldn't change any Aimeos Core files!
Instead:
1.) Create an extension for your project: https://aimeos.org/developer/extensions/
2.) Add your changed templates to your extension: https://aimeos.org/docs/Developers/Html ... _templates
3.) If you overwrite a controller, extend from the existing class and configure your new class name
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

eastkingxu
Posts: 4
Joined: 13 Dec 2018, 08:06

Re:New aimeos extension, how to override the controller of t

Post by eastkingxu » 14 Dec 2018, 02:19

Sorry, I re-describe the problem. In order to avoid the upgrade operation when the client uses the aimeos plugin, the aimeos extension is now extended. The new extension name is nextension. According to the manual, the template of the aimeos extension can override the amigos plugin template. , then how do I extend the amigos controller? Implement new, modify, edit, delete operations.

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

Re: 新建的aimeos扩展插件,可以对aimeos 模版进行覆盖,那么控制器能覆盖掉吗?

Post by aimeos » 14 Dec 2018, 09:58

Which controller/manager do you want to extend?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply