adamlundrigan/ldc-user-profile 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adamlundrigan/ldc-user-profile

Composer 安装命令:

composer require adamlundrigan/ldc-user-profile

包简介

User profile extension for ZfcUser

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Code Coverage Scrutinizer Code Quality

What?

LdcUserProfile is an extensible user profile system for ZfcUser. It allows the authenticated user to modify their own account profile.

How?

  1. Install the Composer package:

    composer require adamlundrigan/ldc-user-profile:1.*@stable
    
  2. Enable the module (LdcUserProfile) in your ZF2 application.

  3. Profit! The user profile page is mounted on the URL path /user/profile by default.

Show me!

If you're fortunate enough to be on a *nix system with PHP >=5.4 and pdo_sqlite, pop into the demo folder and run the setup script (run.sh). This will build the demo application, install the example profile extension module, and start a webserver. Once that's all done just open your browser and:

  • Navigate to http://localhost:8080/user/register
  • Create an account
  • Navigate to http://localhost:8080/user/profile

Changing module configuration

You can override the configuration of LdcUserProfile by copying the dist config file into the config/autoload folder of your ZF2 application and dropping the .dist suffix. Now you can modify the configuration variables within to change the behavior of LdcUserProfile!

Disabling editing of fields

Using the configuration override you can specify which fields in each extension are editable. For example, to allow only the user to change their display name and password in the ZfcUser extension you would put this in the ldc-user-profile.global.php.dist file:

'validation_group_override' => array(
    'zfcuser' => array(
        'display_name
        'password',
        'passwordVerify',
    ),
),

The structure provided to validation_group_override is fed directly into Form::setValidationGroup to enable only the specified form fields.

Adding custom extensions

The bundled demo module ExtensionModule provides a succinct example of how to implement your own profile extension.

统计信息

  • 总下载量: 2.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 1

GitHub 信息

  • Stars: 6
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固