Footer links

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!
WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

Footer links

Post by WGSF » 17 Jul 2023, 10:16

Larvel 10, aimeos 2012.10, php 8

Hello,
The links in the footer of base.blade file call airoute() with parameter path :

Code: Select all

href="{{ airoute('aimeos_page', [ 'path' => 'terms']) }}"
The ROUTE generated is then : http://myhost/p/terms

I am not sure to understand what is the advantage of using that 2nd parameter.
I think it can be used to call the same component page format ie. 'aimeos_page' for several pages and then the 2nd parameter make reference to a specific content ie. my page 'terms' located in /p/terms.blade.php.
Is that right ?
Is there another purpose for using airoute() with 'path' parameter ?
Many Thanks,

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

Re: Footer links

Post by aimeos » 19 Jul 2023, 07:52

The "path" parameter doesn't directly map to a Blade template file. Instead, the URLs are virtual and all map to the same Blade template but the content passed to the template is different. The content matched by the "path" parameter is fetched from the database and then passed to the template.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply