title: How to looping data from multidimension array in codeigniter
body: <p>i found something problem with looping data in multidimension array. i got error. <strong>undefined $t</strong> in my view. 
  this my controller :</p>
  
  <pre><code>$dp[] = array(
          'id'                =&gt; $ft-&gt;idpr_order,
          'nor_order_pro'     =&gt; $ft-&gt;no_order_pro,
          'product_name'      =&gt; $ft-&gt;nama_produk,
          'sku'               =&gt; $ft-&gt;artikel,
          'brand'             =&gt; $ft-&gt;merk,
          'discount'          =&gt; $discft,
          'size'              =&gt; $ukr,
          'color'             =&gt; $wrn,
          'qty'               =&gt; $ft-&gt;qty,
          'price_before'      =&gt; $hg_before,
          'price_fix'         =&gt; $ft-&gt;harga_fix,
          );
      }
  
      $exp = explode('|', $resex);    
      $data_cs = array(
          'inv'      =&gt; $invoice,
          'tglOrdercs' =&gt; date('d F Y H:i:s'),
          'tglExp'   =&gt; $date_maju,
          'nmlkp'    =&gt; $nmlkpi,
          'almtkp'   =&gt; $address,
          'note'     =&gt; $note_ol,
          'kota'     =&gt; $city,
          'prov'     =&gt; $prov,
          'layanan'  =&gt; $exp[0],
          'etd'      =&gt; $exp[1],
          'tarif'    =&gt; $exp[2],
          'noTelp'   =&gt; $notelp271,
          'methode'  =&gt; $method,
          'bnk_option' =&gt; $banking_select,
          'cabang'   =&gt; $banking_inf_cab,
          'no_rek'   =&gt; $banking_inf_no,
          'an_bnk'   =&gt; $banking_inf_an,
          'subtotal' =&gt; $subt,
          'kode_pembayaran' =&gt; $code_unik,
          'total_belanja' =&gt; $tot_bel,
          'berat_total' =&gt; $tot_ber,
          'data_order' =&gt; $dp
       );
      $body = $this-&gt;load-&gt;view('em_info_notification_group/mail_order_for_admin',$data_cs,TRUE);
  </code></pre>
  
  <p>and this my view </p>
  
  <pre><code>&lt;?php 
              foreach ($data_order as $data):
                if (is_array($data)):
                  foreach ($data as $value):
                    if (is_array($value)):
                        foreach ($value as $t):
            ?&gt;
            &lt;tr&gt; 
              &lt;td class="yut" align="left" style="border-bottom: 1px solid #ccc;"&gt;
                &lt;h4 style="margin-top:10px;margin-bottom: 10px;"&gt;&lt;b&gt;&lt;?php echo $t['product_name'];?&gt;&lt;/b&gt;&lt;/h4&gt;
                &lt;ul class="list-unstyled" style="font-size: 12px; padding-left: 15px;margin-top: 0;"&gt;
                  &lt;li class="gf"&gt;SKU : &lt;?php echo $t['sku'];?&gt;&lt;/li&gt;
                 &lt;?php echo $t['color'];?&gt;
                 &lt;?php echo $t['size'];?&gt;
                &lt;/ul&gt;
              &lt;/td&gt;
              &lt;td class="yut" style="font-size: 14px;border-bottom: 1px solid #ccc;" align="center"&gt;
                &lt;?php echo $t['qty'];?&gt; pcs
              &lt;/td&gt;
              &lt;td class="yut" style="border-bottom: 1px solid #ccc;" align="right"&gt;  
                &lt;span style="font-size: 12px;"&gt;&lt;?php echo $t['price_before'];?&gt;&lt;br&gt;&lt;harga&gt;Rp. &lt;?php echo $t['price_fix'];?&gt;&lt;/harga&gt;&lt;br&gt;&lt;?php echo $t['discount'];?&gt;&lt;/span&gt;
              &lt;/td&gt;
            &lt;/tr&gt;
            &lt;?php 
                      endforeach;
                    endif;
                  endforeach;
                endif;
              endforeach;
            ?&gt;
  </code></pre>
  
  <p>in my view i got error. <strong>undefined $t</strong> in my view. actually the data I want to parse it to the admin template html. I have done various ways but nothing works</p>