Using blade templates instead of php ones
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Using blade templates instead of php ones
Hey, I'm trying to adapt the views using blade files instead of your standard HTML with alternative PHP syntax, but I can't seem to make it work.
It works when I do a very simple file without the Aimeos view helpers and all, but when I want to use them, it says "Using $this when not in object context".
I saw that you are currently working on it (Provide Blade/Fluid/Twig templates for the HTML clients from your roadmap) but I was wondering if you have a solution right now.
It works when I do a very simple file without the Aimeos view helpers and all, but when I want to use them, it says "Using $this when not in object context".
I saw that you are currently working on it (Provide Blade/Fluid/Twig templates for the HTML clients from your roadmap) but I was wondering if you have a solution right now.
Re: Using blade templates instead of php ones
You can't use the Aimeos view helpers in a Blade file because Blade doesn't know anything about Aimeos views and its helpers. On the other side, you can use the full power of the Blade directives and the two functions from Aimeos that offer the functionality that is not available in Blade by default:
https://aimeos.org/docs/latest/laravel/ ... -templates
https://aimeos.org/docs/latest/laravel/ ... -templates
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
