function manage_category() { $category_service = new Category_service(); $data['heading'] = "Manage Categories"; $data['results'] = $category_service->get_all_categories(); $parials = array('content' => 'category/manage_category_view'); $this->template->load('template/main_template', $parials, $data); }
function load_animal() { $animal_service = new Animal_service(); $category_service = new Category_service(); $data['categories'] = $category_service->get_all_categories(); $data['animal'] = $animal_service->get_animal($this->input->post('id', TRUE)); echo $this->load->view('animal/animal_edit_popup', $data, TRUE); }