airoute not works inside components
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!
- mahammadareef
- Posts: 54
- Joined: 14 Oct 2022, 11:54
airoute not works inside components
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
{{ 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
Re: airoute not works inside components
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, give us a star
If you like Aimeos, give us a star