> We’re creating a shout task, please add a function named after your task from your component’s controller class,
> We need to create a function named shout() and add it to our controller’s class. Below is our controller.php file with the new code we added to it highlighted in red
<?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla controller library jimport('joomla.application.component.controller'); /** * Hello World Component Controller */ class HelloWorldController extends JControllerLegacy { function shout() { echo "<p>THIS IS ME SHOUTING!</p>"; } }