diff --git a/config/ZfcUserList.global.php.dist b/config/ZfcUserList.global.php.dist index 79b09b1..3208d10 100644 --- a/config/ZfcUserList.global.php.dist +++ b/config/ZfcUserList.global.php.dist @@ -19,6 +19,11 @@ $settings = array( */ 'user_mapper' => 'ZfcUserList\Mapper\UserZendDb', + /** + * an array with as first the label and as second the fielsname in the database + */ + 'userListElements' => array('Id' => 'id', 'Email address' => 'email', 'Display name' => 'display_name') + /** * [WIP] */ @@ -27,7 +32,7 @@ $settings = array( /** * [WIP] */ - 'elements' => array("username", "email", "display_name"), + 'elementsPerPage' => '10', ); /** diff --git a/language/msgIds.php b/language/msgIds.php new file mode 100644 index 0000000..edc0745 --- /dev/null +++ b/language/msgIds.php @@ -0,0 +1,9 @@ +userlistElements as $element) { userlistElements as $name => $element): ?> - escapeHtml($name ? : $element); ?> + translate($this->escapeHtml($name ? : $element)); ?>