Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

função de LOOP nos blocos #48

Closed
israel-nogueira opened this issue Jan 12, 2021 · 0 comments · May be fixed by #50
Closed

função de LOOP nos blocos #48

israel-nogueira opened this issue Jan 12, 2021 · 0 comments · May be fixed by #50

Comments

@israel-nogueira
Copy link

Sugestão:
criar função que faça o LOOP para duplicar os blocos de maneira nativa, economizando tempo de programação:
Por exemplo:
$usuarios = [
['NOME'=>'RAEL'],
['NOME'=>'MAURICIO'],
['NOME'=>'LUIZ']
];
$template->mapBlock("BLOCK_USUARIOS", $usuarios);

Isso substituiria um foreach setando ->block("BLOCK_USUARIOS");

raelgc added a commit that referenced this issue Jan 13, 2021
raelgc added a commit that referenced this issue Jan 13, 2021
raelgc added a commit that referenced this issue Jan 13, 2021
@raelgc raelgc closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants