airoute not works inside components

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!
User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

airoute not works inside components

Post by mahammadareef » 27 Oct 2022, 12:59

I tried using this code inside my components but it fails to generate a URL
{{ airoute( 'aimeos_shop_account' ) }}
this works in the base.blade.php file but not in my component template file

please help me with this,

thanks in advance

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

Re: airoute not works inside components

Post by aimeos » 28 Oct 2022, 07:06

In the Aimeos templates, you have to use e.g.:

Code: Select all

<?= $enc->attr( $this->link( 'client/html/catalog/detail', ['d_prodid' => 123] ) ) ?>
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply