D
D
Denis2015-10-16 10:09:01
MODX
Denis, 2015-10-16 10:09:01

How to pass the values ​​of a snippet variable to a chunk?

It is required to pass the values ​​of the php variable from the snippet to the chunk. how to do it?

NameQuantityAmount (R.)
Audio recordings$kol_audio$sum_audio
Images$kol_photo$sum_photo
Credits$titry$sum_titry

Total amount (rub.):

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2015-10-16
@Rango_31

decided

return $modx->getChunk('kassa', array(
    'summaaudio' => $sum_audio,
    'summaphoto' => $sum_photo,
    'summatitry' => $sum_titry,
    'kolaudio' => $kol_audio,
    'kolphoto' => $kol_photo,
    'titry' => $titry,
    'summa' => $_POST['summaSkrito'],));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question