/** * Print category urls * * @param int $parentId */ public function readCategoryUrls($parentId) { $categories = $this->repository ->getActiveChildrenByIdQuery($parentId) ->getArrayResult(); foreach ($categories as $category) { if(!empty($category['category']['external'])) { continue; } $category['link'] = $this->Front()->Router()->assemble(array( 'sViewport' => 'cat', 'sCategory' => $category['category']['id'], 'title' => $category['category']['name'] )); $this->printCategoryUrl(array( 'changed' => $category['category']['changed'], 'link' => $category['link'] )); } }