Backend\UserController::edit PHP Method

edit() public method

Show the form for editing the specified user.
public edit ( integer $id ) : Response
$id integer
return Response
    public function edit($id)
    {
        $company_module = 'Modules\\Doptor\\CompanyInfo\\Models\\Company';
        if (class_exists($company_module)) {
            $companies = $company_module::names();
        } else {
            $companies = null;
        }
        $user = $this->user_manager->findUserById($id);
        $this->layout->title = 'Edit User';
        $this->layout->content = View::make($this->link_type . '.' . $this->current_theme . '.users.create_edit')->with('user', $user)->with('companies', $companies);
    }