function view($id) { $bug = new Bug(); $bug->include_related('status', 'name', TRUE, TRUE); $bug->include_related('creator', 'name', TRUE, TRUE); $bug->include_related('editor', 'name', TRUE, TRUE); $bug->get_by_id($id); if (!$bug->exists()) { show_error('Invalid Bug ID'); } $bug->categories->get_iterated(); $bug->users->get_iterated(); $this->load->helper('typography'); $this->output->enable_profiler(TRUE); $this->load->view('template_header', array('title' => 'Bug: ' . $bug->title, 'section' => 'search')); $this->load->view('bugs/view', array('bug' => $bug)); $this->load->view('template_footer'); }