Forums

Array inside Events not work

ieraora 11 Jul, 2021
Hi, I can try to add an array inside an events, without success.
The array that I can try was {var.join[,]:read_gallerie.Galleria.id_galleria},

If i try {var:read_gallerie.1.Galleria.id_galleria}, it work correctly.

How can I do?

Thanks for replay

Link to emage: https://ibb.co/fxvct2z
ieraora 26 Jul, 2021
Answer
Found Solution:

$id_gall_j = $this->get("read_gallerie.[n].Galleria.id_galleria");
$id_gall_j = join('","', $id_gall_j);
return array( "id_gall_j"=> $id_gall_j );
You need to login to be able to post a reply.