Ejemplo n.º 1
0
 public function listings_uploader($list_id)
 {
     $ObjQuery = new queryModel();
     $ObjList = new listingsModel();
     $ObjListImage = new listingsImagesModel();
     $details_list = $ObjList->get_record_join(array('`j`.`' . $ObjList->tblid . '`=' => $list_id));
     $data = array();
     $data = $ObjQuery->array_to_data($data, $details_list);
     $data['records_image'] = $ObjListImage->get_images_by_list_id($list_id);
     return View::make('listings_uploader', $data);
 }
Ejemplo n.º 2
0
 public function published($list_id)
 {
     $ObjList = new listingsModel();
     $data = array($ObjList->tblpref . 'status' => 'Published');
     $result = $ObjList->update_data($data, $list_id);
     return Redirect::to('listings_edit/' . $list_id);
 }