oxenti / tutor
Tutor plugin for CakePHP
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
- oxenti/soft-delete: dev-master
Requires (Dev)
This package is not auto-updated.
Last update: 2025-01-10 09:01:34 UTC
README
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require oxenti/Tutor
Configuration
In your app's config/bootstrap.php
add:
// In config/bootstrap.php Plugin::load('Tutor');
or using cake's console:
./bin/cake plugin load Tutor
In your app's 'config/app.php' add this to your Datasources array:
'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:
./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.
On your app's 'bootstrap.php' add the tutor configuration file:
... try { Configure::config('default', new PhpConfig()); Configure::load('app', 'default', false); } catch (\Exception $e) { die($e->getMessage() . "\n"); } Configure::load('tutor', 'default'); ...