Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
736 B
1
Indexable
Never
    $itt2 = 0;
    foreach ($data_aktivitas as $akt_key => $skpi_item) {
        if (in_array($skpi_item['parentkelompok'], $arrOrganisasi)) {
            $itt2++;
            $arr_kegiatan = [
                'noorganisasi' => $itt2, 'namaorganisasi' => ($skpi_item['nama'])
            ];

            $data_organisasi[] = $arr_kegiatan;
        }
        $itt2++;
    }

    $itt = 1;
    // var_dump(count($data_aktivitas));
    $templateProcessor->cloneBlockMod('loop_a', count($data_aktivitas), true, true);
    foreach ($data_aktivitas as $val) {
        $replace["namakegiatan#" . $itt] = $val['jenis'];
        // echo '<pre>';
        // var_dump($val['nama'] . $itt);
        $itt++;
    }
    // die();