ethercap/yii2-ledap-example

example for yii2-ledap

dev-master 2020-07-14 04:11 UTC

This package is not auto-updated.

Last update: 2024-04-17 22:06:09 UTC


README

========================

安装

推荐的方式是通过composer 进行下载安装composer

在命令行执行

php composer.phar require "ethercap/yii2-ledap-example" "dev-master"

或加入

"ethercap/yii2-ledap-example": "dev-master"

到你的composer.json文件中的require段。

使用

module配置

一旦你安装了这个插件,你就可以直接在yii2的配置文件中加入如下的代码:

return [
    'modules' => [
        'ledap' => [
            'class' => '\ethercap\ledapExample\Module',
        ],
    ],
];

然后需要把静态资源放置到web目录下:

cd your_project
#注意需要保证web用户有权限访问这个目录,否则页面会无法加载
ln -s `pwd`/vendor/ethercap/yii2-ledap-example/src/webroot frontend/web/js/ledap