Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }