1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
class My_class extends controller
{
    function __construct()
    {
        parent::Controller;
    }

    function index()
    {
        $this->load->view('../templates/my_template/my_file.php'); // Load the template file by going to the parent directory of the views folder (/application/) and then going to /templates/my_template/my_file.php
    }
}
?>