Pass param to Block subpart

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
AmzoooJibal
Posts: 35
Joined: 12 Mar 2021, 20:09

Pass param to Block subpart

Post by AmzoooJibal » 24 Jun 2021, 18:09

Hello,
there is any way to pass parametre to the block template like this:

<?= $this->block()->get('home/section',['code'=>'value']);

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

Re: Pass param to Block subpart

Post by aimeos » 26 Jun 2021, 07:14

No but that's also not necessary. All variables are available within using

Code: Select all

$this->get( 'variablename' )
// or
$this->variablename
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply