Footer links
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!
Footer links
Larvel 10, aimeos 2012.10, php 8
Hello,
The links in the footer of base.blade file call airoute() with parameter path :
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,
Hello,
The links in the footer of base.blade file call airoute() with parameter path :
Code: Select all
href="{{ airoute('aimeos_page', [ 'path' => '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,
Re: Footer links
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, give us a star
If you like Aimeos, give us a star