How to get GET param value in templates?

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
parmonov98
Posts: 33
Joined: 24 Sep 2020, 12:12

How to get GET param value in templates?

Post by parmonov98 » 12 Oct 2020, 16:58

I need l_type's value, depending on its value I wanna make displaying_type icon active or inactive as here https://i.imgur.com/0A3rG40.png.

How can I get this in a template?
https://i.imgur.com/V2ssV5J.png

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

Re: How to get GET param value in templates?

Post by aimeos » 13 Oct 2020, 09:49

Use the param() view helper:

Code: Select all

$this->param( 'l_type' )
https://aimeos.org/docs/latest/infrastr ... ers/#param
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply