/** * блокируем/разблокируем карту */ public function action_card_toggle() { $params = $this->request->post('params'); $result = Model_Card::toggleStatus($params); if (empty($result)) { $this->jsonResult(false); } $this->jsonResult(true); }