how to modify helper

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!
User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

how to modify helper

Post by mahammadareef » 03 Feb 2023, 15:56

I wanted to modify this helper file which is inside the vendor directory which contains the standard class

ai-client-html\src\Base\View\Helper\Image

want to modify transform() method of Standard class in image file

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

Re: how to modify helper

Post by aimeos » 06 Feb 2023, 12:22

It's a bit difficult to overwrite existing view helpers. Instead, create a new one with a different name (e.g. "myimage") and use it in your templates ("$this->myimage(...)").
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply