$modx->user->Profile->zip
$profile->set('zip', '12345'); $profile->save();
case \'saveProject\': $redirect = false; if (!$_POST[\'id\']) { $userAllowedCount = $modx->user->Profile->zip; if (!$userAllowedCount) $userAllowedCount = 5; $countProject = $modx->runSnippet(\'countProjects\'); if ($countProject >= $userAllowedCount) { $res[\'success\'] = false; $res[\'msg\'] = \' Text \'.$userAllowedCount.\' Text.\'; break; }
$userAllowedCount = $modx->user->Profile->zip;