Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 1.25 KB

installation.md

File metadata and controls

42 lines (35 loc) · 1.25 KB

Installation

This documentation page guides you through installation of CakePHP-App-Installer plugin into your application

Step 1:

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require cakephp-app-installer/installer

Step 2:

load Installer plugin to your CakePHP Application by adding below like to your bootstrap.php file inside /config directory

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

or from terminal

bin/cake plugin load CakePHPAppInstaller

Setup

below following script inside bootstrap.php file in /config directory

if (file_exists(CONFIG . 'app_local.php')) {
    Configure::load('app_local', 'default');
}
...

add following lines

...
if (file_exists(CONFIG . 'database.php')) {
    Configure::load('database', 'default');
}

Automation

You can also configure your application to auto check for database configuration so that any modification in database configuration will redirect user to re-configuration of the database. Fore more guide Click Here

< README | Running Installer >