function category_edit() { $this->check_login(); $id = $this->uri->segment(3); $data = array('obj' => Category::getcategory($id)); $this->load->view('admin/category_edit', $data); }