示例#1
0
 public function index_onDelete()
 {
     if ($checkedIds = post('checked')) {
         foreach ($checkedIds as $itemId) {
             if (!($table = SlidersDB::find($itemId))) {
                 continue;
             }
             $table->delete();
         }
         Flash::success("Removed slider.");
     }
     return $this->listRefresh();
 }
示例#2
0
 public function getSliderOptions()
 {
     return SlidersDB::lists("title", "id");
 }