
Ich bräucht mal eure Hilfe für das da unten
irgendwie hab ich stark im gefühl das das mit dem forech auch elleganter und kürzer geregelt werden kann

Code: Alles auswählen
$oBreadcrumb = new Contenido_FrontendNavigation_Breadcrumb($this->db, $this->cfg, $this->client, $this->lang, $this->cfgClient);
$oBreadCategories = $oBreadcrumb->get($idcat);
foreach ($oBreadCategories as $oBreadCategory){
if($i == 1){
return $oBreadCategory->getIdCat();
break;
}
$i++;
}