Hey,
I'd like to create my first own MOD, but I need some assistance in this basic question:
What's the difference between assign_vars() and assign_block_vars(). This two methods are required (ok, not really, they're but useful) in phpBB-based pages.
I just noticed, that assign_block_vars is used for arrays, while assign_vars is used for variables.
Is that the only difference?
Greets,
Niklas
assign_vars() or assign_block_vars()
- TheNick
- New member
- Posts: 10
- Joined: 06 Jul 2009, 18:51
- Real name: Niklas
- Location: Toenisvorst, Germany
- Contact:
assign_vars() or assign_block_vars()
PM me for MOD-translations into German
- CTO Elektrotipps.de
- CTO Elektrotipps.de
- onehundredandtwo
- Past Contributor
- Posts: 48
- Joined: 23 Jul 2009, 19:47
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
- TheNick
- New member
- Posts: 10
- Joined: 06 Jul 2009, 18:51
- Real name: Niklas
- Location: Toenisvorst, Germany
- Contact:
Re: assign_vars() or assign_block_vars()
Ah, I see. Thank you!
Ciao,
Niklas
Ciao,
Niklas
PM me for MOD-translations into German
- CTO Elektrotipps.de
- CTO Elektrotipps.de
Re: assign_vars() or assign_block_vars()
Also, there's the fact that assign_block_vars() is used to build a template loop. Any kind of list that you see generated in phpBB is usually built with the help of assign_block_vars().
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 15 guests