assign_block_vars with multiple arrays

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
RobiX
Registered User
Posts: 42
Joined: Thu Oct 05, 2017 9:59 am

assign_block_vars with multiple arrays

Post by RobiX » Sun Dec 03, 2017 7:15 pm

works:

Code: Select all

  $template->assign_block_vars('block1.block2', 
    array( 'ITEM' => ..., )
  );
doesnt work:

Code: Select all

  $template->assign_block_vars('block1.block2', 
    array( 'ITEM' => ..., ),
    array( 'ITEM' => ..., )
  );
how can i do it with more than one array? (of course first code can be doubled)

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 2350
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: assign_block_vars with multiple arrays

Post by kasimi » Sun Dec 03, 2017 9:49 pm

Are you looking for assign_block_vars_array()?

RobiX
Registered User
Posts: 42
Joined: Thu Oct 05, 2017 9:59 am

Re: assign_block_vars with multiple arrays

Post by RobiX » Tue Dec 05, 2017 6:33 pm

yes kasimi! tnx a lot!

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 5 guests