public function detail($slug) { $data['product'] = parent::catalog($slug); $this->load->view('catalog/detail', $data); }