function modify_collection() { $peer = new GalleryCollectionPeer(); $do = $peer->updateByParams(); $peer->save($do); if (is_html()) { return Redirect::success(); } else { return Result::ok(); } }