$name]); } } } static function profileCreate(){ $res = []; if(IF_PROFILE and $course = Course::isProfileMy($_POST['course_id'])){ $r = Section::insert([ Section::$COURSE => $course[Course::$ID], Section::$NAME => 'Новый раздел', Section::$ACCOUNT => \Site::$owner_id, ]); $res['id'] = $r->id; } echo je($res); } }