Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $resources = $modx->getCollection('modResource');
- foreach ($resources as $resource) {
- $value = $resource->get('isfolder');
- $resource->set('isfolder', $value);
- $resource->save();
- }
- return '<p>Resources Set</p>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement