public function edit($id)
{
// Get the User Model instance.
$user = User::find($id);
if ($user === null) {
// There is no User with this ID.
$status = __d('users', 'User not found: #{0}', $id);
return Redirect::to('admin/users')->withStatus($status, 'danger');
}
// Get all available User Roles.
$roles = Role::all();
return $this->getView()->shares('title', __d('users', 'Edit User'))->with('roles', $roles)->with('user', $user);
}