array o şekilde geliyor zaten, ne yapmak istiyorsunuz tam olarak, mvc ile alakası nedir bu durumun
şöyle anlatiyim:
Array
(
[0] => Array
(
[id] => 7
[name] => GSM Numarası
[description] => Başında 0 olmadan yazınız.
[type] => text
[input] =>
[value] => 123123
[rawvalue] => 123123
[required] => *
[adminonly] =>
)
[1] => Array
(
[id] => 8
[name] => SMS Almak İstiyor Musunuz?
[description] =>
[type] => tickbox
[input] =>
[value] => on
[rawvalue] => on
[required] => *
)
)
0 ve 1 her ne olursa olsun (1,2,3,4..,9999) sadece name olan kısımları almam gerekli
mvc ile alakası php kodu ekleyemiyorum array gelen bölüme
bkz:
{foreach key=num item=customfield from=$customfields}
<div class="control-group">
<label class="control-label" for="customfield{$customfield.id}">{$customfield.name}</label>
<div class="controls">
{$customfield.input} {$customfield.description}
</div>
</div>
{/foreach}