App\Modules\Users\Controllers\Admin\Users::show PHP Method

show() public method

public show ( $id )
    public function show($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');
        }
        return $this->getView()->shares('title', __d('users', 'Show User'))->with('user', $user);
    }