2017 © Pedro Peláez
 

cakephp-plugin tutor

Tutor plugin for CakePHP

image

oxenti/tutor

Tutor plugin for CakePHP

  • Monday, August 8, 2016
  • by oxenti
  • Repository
  • 7 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OxenTI Tutor API plugin for CakePHP 3

Installation

You can install this plugin into your CakePHP application using composer., (*1)

The recommended way to install composer packages is:, (*2)

composer require oxenti/Tutor

Configuration

In your app's config/bootstrap.php add:, (*3)

// In config/bootstrap.php
Plugin::load('Tutor');

or using cake's console:, (*4)

./bin/cake plugin load Tutor

In your app's 'config/app.php' add this to your Datasources array:, (*5)

    'oxenti_tutor' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],
    'test_oxenti_tutor' => [
        'className' => 'Cake\Database\Connection',
        'driver' => 'Cake\Database\Driver\Mysql',
        'persistent' => false,
        'host' => 'ỳour_db_host',
        'username' => 'username',
        'password' => 'password',
        'database' => 'databse_name',
        'encoding' => 'utf8',
        'timezone' => 'UTC',
        'cacheMetadata' => true,
        'log' => false,
        'quoteIdentifiers' => false,
    ],

In your app's initial folder execute plugin's migrations:, (*6)

./bin/cake migrations migrate -p Tutor

Configuration files

Move the 'tutor.php' config file from the plugin's config folder to your app's config folder., (*7)

On your app's 'bootstrap.php' add the tutor configuration file:, (*8)

    ...
    try {
        Configure::config('default', new PhpConfig());
        Configure::load('app', 'default', false);
    } catch (\Exception $e) {
        die($e->getMessage() . "\n");
    }

    Configure::load('tutor', 'default');
    ...

The Versions

08/08 2016

dev-master

9999999-dev

Tutor plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires