johnnymcweed/luya-module-person

安装: 28

依赖: 2

建议: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

类型:项目

dev-master 2018-04-25 16:43 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:47:40 UTC


README

人模块允许向 Luya 应用程序添加人员。因此,可以在后端添加人员,随后在前端显示。

安装

安装模块需要 Composer。

composer require johnnymcweed/luya-module-person:dev-master 

配置

return [
    'modules' => [
        // ...
        'person' => 'johnnymcweed\person\frontend\Module',
        'personadmin' => 'johnnymcweed\person\admin\Module',
        // ...
    ],
];

初始化

安装和配置成功后,运行迁移、导入和设置命令以在项目中初始化模块。

1.) 迁移您的数据库。

./vendor/bin/luya migrate

2.) 将模块和迁移导入您的 LUYA 项目。

./vendor/bin/luya import

添加权限到您的组后,您将能够编辑和添加新人员。

示例视图

已设置默认视图。使用这些视图或创建您自己的自定义视图。