/** * Update article order * * detail: Update article orders based on cat when finishing drag and drop * * @return void * * @access public * @since 1.0 * @version 1.0 * @author Dao Anh Minh */ public function action_update_order() { $array = Input::post('arrayorder'); if (!empty(Input::post('parent_cat'))) { $count = 1; foreach ($array as $article_id) { Model_Article::update_order(Input::post('parent_cat'), $article_id, $count); $count++; } } }