Skip to content

Toujours des difficultés avec la manipulation des blocs #24

Answered by rawsrc
moimp3 asked this question in Q&A
Discussion options

You must be logged in to vote

Salut moimp

C'est tout à fait normal l'erreur que tu obtiens, regarde ce que tu fais avec $block :
En 1 : tu codes $block['subForm'] = new PhpEcho(...); donc $block n'est pas une instance de PhpEcho, c'est $block['subForm'] qui l'est (première erreur), $block est un tableau en l'occurrence...
En 2 : tu codes $block['fullname'] = $gender . ' ' . $session['firstname'].' '.$session['familyname'];, ce qui exclut d'emblée la possibilité d'avoir un tableau de PhpEcho. Un tableau d'instances de PhpEcho est géré par le moteur et au rendu il est transformée en chaîne de caractères. Dès que tu mélanges dans un tableau des valeurs de type différents, le rendu du tableau dans la page doit être fait à…

Replies: 22 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@moimp3
Comment options

Answer selected by rawsrc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@moimp3
Comment options

@rawsrc
Comment options

@moimp3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@moimp3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@moimp3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@moimp3
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants