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