Example #1
0
 function actionSaveSlideOrder($params = '')
 {
     if (!empty($params['order'])) {
         $pageOrder = explode(',', $params['order']);
         $sortOrder = array();
         foreach ($pageOrder as $order) {
             $sortOrder[] = substr($order, 6);
         }
         $objSlideshow = new SlideshowModel();
         $objSlideshow->saveSortOrder($sortOrder);
     }
 }