Skip to content

Instantly share code, notes, and snippets.

@exside
Forked from hansek/gist:2228776
Created March 2, 2013 20:46
Show Gist options
  • Save exside/5073204 to your computer and use it in GitHub Desktop.
Save exside/5073204 to your computer and use it in GitHub Desktop.
<?php
$docArray = $modx->getCollection('modResource');
foreach($docArray as $doc) {
$doc->joinGroup('GroupName');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment