关于MAMP的codeigniter静态页面教程无法正常工作

Hey guys im simply following the static pages tutorial for codeigniter and im getting a 404 not found

<?php

class Pages extends CI_Controller {


    public function view($page = 'home') {

        if(!file_exists(APPPATH . '/views/pages/' . $page . '.php')) {
            //page isnt here
            show_404();
        }

        $data['title'] = ucfirst($page); // Capitalize the first letter
        $this->load->view('templates/header', $data);
        $this->load->view('pages/'.$page, $data);
        $this->load->view('templates/footer', $data);
    }
}

?>

all i have is what the guide is telling me to copy. I havent gotten to the routing yet because nothing is working. Does anyone know how to fix this issue?