Esempio n. 1
0
     if (!$imageItem->validate()) {
         var_dump($imageItem->validate());
     }
     $imageItem->save();
     $output = array('success' => 1, 'data' => $param);
     $this->jsonwrapper->print_json($output);
 }
 public function categorydelete($param)
 {
     $department_id = $param['department_id'];
     $departmentAvailable = $this->tools->departmentAvailable($department_id);
     if (empty($param['id'])) {
         $this->jsonwrapper->show_json_error('param', 'Parameter id tidak ditemukan.');
     }
     $category = WebSlideshowCategoryPeer::retrieveByPK($param['id']);
     if (!$category) {
         $this->jsonwrapper->show_json_error('item', 'Item dengan id ' . $param['id'] . ' tidak ditemukan.');
     }