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