Carry out the following steps:
Open the controller again
packages/c5book/controllers/dashboard/reports/broken_links.php
and put the preceding code in it. It's pretty much the same, except there's a second method in it to display all links.The output, our single page, needs to handle these two modes as well. We're going to display a different text and a different link to switch between the two modes. We're using the variable
mode
, which is set to a different value by the two controller methods. Openpackages/c5book/single_pages/dashboard/reports/broken_links.php
and alter the content to match the following:<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <h1><span><?php echo t('Broken Links')?></span></h1> <div class="ccm-dashboard-inner"> <?php if ($mode == 'brokenLinks'): ?> <p><?php echo t('The following links didn\'t return 200 or 302 OK / Found. You should check...