Using blade templates instead of php ones

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!
svedrine
Posts: 6
Joined: 04 Jan 2021, 13:26

Using blade templates instead of php ones

Post by svedrine » 08 Jan 2021, 13:23

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.

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

Re: Using blade templates instead of php ones

Post by aimeos » 08 Jan 2021, 16:09

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply