oxenti / request
Request plugin for CakePHP
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4.16
- cakephp/cakephp: ~3.0
- oxenti/historic: dev-master
- oxenti/soft-delete: dev-master
Requires (Dev)
This package is not auto-updated.
Last update: 2024-12-29 08:28:37 UTC
README
This plugin contains a package with API methods for managing Addresses on a CakePHP 3 application.
Requirements
- CakePHP 3.0+
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require oxenti/request
Configuration
In your app's config/bootstrap.php
add:
// In config/bootstrap.php Plugin::load('Request');
or using cake's console:
./bin/cake plugin load Request
In your app's initial folder execute plugin's migrations:
./bin/cake migrations migrate -p Request
Configuration files
Move the 'request.php' config file from the plugin's config folder to your app's config folder.
On your app's 'bootstrap.php' add the address configuration file:
... try { Configure::config('default', new PhpConfig()); Configure::load('app', 'default', false); } catch (\Exception $e) { die($e->getMessage() . "\n"); } Configure::load('request', 'default'); ...
Using extrenal Associations
If you want to associate the Request table with other tables on your application, use the request.php configuration file setting the 'relations' entry to your needs.