/KoVicky

wiki plugin for CakePHP 3.x

Primary LanguagePHP

KoVicky

wiki plugin for CakePHP 3.x

PROBLEM
  ├──> DESCRIPTION
  └──> RELATED PROBLEMS
        └──> DESCRIPTION

Server Requirements

  • PHP 5+
  • GD extension

Install

composer require robjuz/cakephp-kovicky

add to your config/bootstrap.php

Plugin::load('KoVicky',['routes' => true]);

add to your webroots folder (webserver need write access)

/webroot/uploads

Create database tables

To create the required database tables use the migrations plugin

bin/cake migrations migrate -p KoVicky

Requirements

  • Be sure your database has a users table with username and password columns

  • Add this to src/AppController.php

$this->loadComponent('Auth', [
            'loginAction' => [
                'controller' => 'Users',
                'action' => 'login',
                'prefix' => false,
                'plugin' => false
            ],
            'authorize' => 'Controller'
        ]);
  • in src/AppController.php implement
public function isAdmin(){

}