In my view page i have used the following loop:
@foreach ($type as $ingtype)
<h4></h4>
@foreach ($ as $ing)
<input type="checkbox" name="ing[]" value="" />
<label for=""></label>
@endforeach
@endforeach
What i'm trying to do here is that from i get values Dairy, Vegetable, Meat and so on. So i need those values in the foreach inside it in @foreach ($ as $ing) which must mean ($Dairy as $ing) then another loop gives ($Vegetable as $ing)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire