public function shuffleAction() { $request = $this->getRequest(); $params = $request->getPost(); try { $pl = new Application_Model_Playlist($params['obj_id']); $result = $pl->shuffle(); if ($result['result'] == 0) { $this->_helper->json->sendJson(array("result" => 0, "html" => $this->createFullResponse($pl, true))); } else { $this->_helper->json->sendJson($result); } } catch (PlaylistNotFoundException $e) { $this->playlistNotFound('block', true); } catch (Exception $e) { $this->playlistUnknownError($e); } }