Documentation

Course: Controller Example

Course.php

Now you need to create your custom controller Course.php in the My/Controllers folder.

For example, the Course.php file should look like this:

<?php
    namespace My\Controllers;

    class Course extends \My\Controller
    {
        public static function init()
        {
            echo "This is the courses page";
        }
    }
?>