zabachok/yii2-burivuh 问题修复 & 功能扩展

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

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

zabachok/yii2-burivuh

最新稳定版本:0.3

Composer 安装命令:

composer require zabachok/yii2-burivuh

包简介

Simple notepad with markdown editor for yii2

README 文档

README

Simple notepad with markdown editor for yii2 Все это на русском

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist zabachok/yii2-burivuh "*"

or add

"zabachok/yii2-burivuh": "*"

to the require section of your composer.json file.

Run module migration:

php yii migrate --migrationPath=@vendor/zabachok/yii2-burivuh/migrations

Activating

Add to you config file:

'modules' => [
    ...
    'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
    ],
]

and to bootstrapping:

'bootstrap' => [..., zabachok\burivuh\Bootstrap::class],

Options

  1. db - name of database component:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'db'=>'db',
    ...
    ],
  1. usernameCallback - anonymous function for generate username:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'usernameCallback'	=>function($user_id)
            {
                $user = \common\models\user\User::findIdentity($user_id);
                return is_null($user) ? 'Undefined' : $user->username;
            },
    ...
    ],
  1. route - you can use custom route to this module. For example:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'route' => 'wiki',
    ...
    ],

It will be generate links like example.com/wiki/doc/mydoc

  1. accessRules - this option configuring AccessControl::rules component. For example:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'as access' => [
            'class' => yii\filters\AccessControl::className(),
            'rules' => [
                [
                    'allow' => true,
                    'roles' => ['?'],
                ],
            ],
        ],
    ...
    ],

Usage

Open url: http://your-site.com/burivuh
You can create, update and delete categories and documents. All actions is available only for authorized users.

Hot keys

In list

Arrow up and arrow down - moving up and down in list
Enter - open dir or file
Backspace - up in filesystem tree

In view

Ctrl + e - edit the document

In write

Ctrl + s - save document
Shift + Enter - new line
Tab - four spaces

Text formatting Ctrl + h - make this line a header

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固