Expose custom variable from decorator to the view
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Expose custom variable from decorator to the view
Hi Aimeos-Team,
how can I add custom var´s from an Frontend-Controller-Decorator class to the desired view?
Maybe from an Controller/Frontend/Basket-Decorator to the view (template) "client/html/basket/standard/body"?
Thank you!
how can I add custom var´s from an Frontend-Controller-Decorator class to the desired view?
Maybe from an Controller/Frontend/Basket-Decorator to the view (template) "client/html/basket/standard/body"?
Thank you!
Re: Expose custom variable from decorator to the view
You can't, because a frontend decorator doesn't have access to the view that is used in the HTML client. You can create a decorator for the HTML client that uses the frontend controller to retrieve data and assign that to the view.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Expose custom variable from decorator to the view
Thank you, this was helpful!