Exemple #1
0
 function actionSaveCategoryOrder($params = '')
 {
     if (!empty($params['order'])) {
         $categoryOrder = explode(',', $params['order']);
         $sortOrder = array();
         foreach ($categoryOrder as $order) {
             $sortOrder[] = substr($order, 9);
         }
         $objBlog = new BlogModel();
         $objBlog->saveSortOrder($sortOrder);
     }
 }