- Update database config in
application/config/database.php - Update
log_tresholdto1andbase_urlinapplication/config/config.php - Update
bonfire/codeigniter/core/Common.phpat line 257 onreturn $_config[0] =& $config;to below,
$_config[0] =& $config;
return $_config[0]; - Open in browser to start installation
- Update
template.admin_themetoscaleinapplication/config/application.php - Copy & paste 4-sight
home/themes/scaletopublic/themes/scale - Copy & paste 4-sight
home/bonfire/modules/buildertoapplication/modules/builder - Copy & paste 4-sight
home/bonfire/modules/uitoapplication/modules/ui - Replace
application/core/MY_Model.phpwith 4-sighthome/application/core/MY_Model.php - Update
public/themes/scale/partials/_header.phpat line 142 to 151 to below for now;
$unread_notifications = false;
$last_unread_notifications = false;- Create a
composer.jsonfile with below content;
{
"autoload": {
"classmap": [
"application/models"
]
},
"require": {
"illuminate/database": "~5.2"
}
}- Insert below line to
index.php
require_once '../vendor/autoload.php';- Insert below content to
application/config/autoload.php
use Illuminate\Database\Capsule\Manager as Capsule;
$capsule = new Capsule;
$this->load->database();
$capsule->addConnection(array(
'driver' => 'mysql',
'host' => $this->db->hostname,
'database' => $this->db->database,
'username' => $this->db->username,
'password' => $this->db->password,
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => $this->db->dbprefix,
));
$capsule->setAsGlobal();
$capsule->bootEloquent();