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 use a method that detects the called method and shows a different output depending on Open
packages/c5book/single_pages/dashboard/reports/broken_links.php
. We'll then 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 ($this->controller->getTask() == 'view'): ?> <p> <?php echo t('The following links didn\'t return 200 or 302 OK / Found. You should check them to make sure they work as expected. Please...