public function action_update_order() { if (Request::initial()->is_ajax()) { $arr = Arr::get($_POST, 'text', ''); $ajax = new Model_Stanki(); $arr = json_decode($arr); $res = $ajax->update_orders($arr); } }