<?foreach($Country->data as $key => $value):?> <a class="link_f m" href="/select/<?=$key?>/"> <img width="50" style="float:left;padding-right:10px" src="/img/flags/<?=$key?>.png"/> <div style="margin-top:7px"><b><?=$value?></b></div> <div style="clear:both"></div> </a> <?endforeach?>