From 57a3976c7ae3ec9b7dbe4bc887ed21848caabf0e Mon Sep 17 00:00:00 2001 From: Stijn Haulotte Date: Mon, 28 Apr 2014 22:10:47 +0200 Subject: [PATCH] Begin of customization of the userList --- config/ZfcUserList.global.php.dist | 7 ++++++- language/msgIds.php | 9 +++++++++ view/zfc-user-list/user-list/list.phtml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 language/msgIds.php 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)); ?>