<?php } else { ?> <?php $categories = new \model\category_list($baseCtrl->getDbconnection()); $categories = $categories->getCategories(); ?> <?php foreach ($categories as $id => $category) { ?> <h3><?php print $category->getName(); ?> </h3> <?php affiliatr::showAffiliates($id, $acceptedOnly, $textOnly, $openBlank); ?> <?php } ?> <?php } ?> </body> </html>