I’m sorry if this is posted elsewhere, but I’ve just spent an hour looking. I’m trying to make a page that displays all users that signed up for my site. How do I do that? Is there a simple snippit call that I don’t know about?
Thanks
Teaching myself MODx
Try something like this
<?php
$output = '';
$table_users = $modx->getFullTableName('web_users');
$users = $modx->db->select('`username`', $table_web_users);
foreach ($users as $user) {
$output .= $user['username'] . '<br>';
}
return $output;
?>
My portfolio
Самурай без меча подобен самураю с мечом, только без меча.