Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Fix order of new Modules and Users #73

Merged
merged 1 commit into from
Nov 2, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function __invoke($options = null)
$limit = isset($options['limit'])?$options['limit']:null;

$mapper = $sm->get('application_module_mapper');
$modules = $mapper->findAll($limit, 'created_at');
$modules = $mapper->findAll($limit, 'created_at', 'DESC');


}
Expand Down
2 changes: 1 addition & 1 deletion module/User/src/User/View/Helper/NewUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __invoke()
//need to fetch top lvl ServiceManager
$sm = $sm->getServiceLocator();
$mapper = $sm->get('zfcuser_user_mapper');
$users = $mapper->findAll(10, 'created_at');
$users = $mapper->findAll(10, 'created_at', 'DESC');

return $users;
}
Expand Down