Skip to content

Instantly share code, notes, and snippets.

@natsu90
Last active April 12, 2016 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natsu90/927d2e6b52ed7ebd3ead2d5145c55e53 to your computer and use it in GitHub Desktop.
Save natsu90/927d2e6b52ed7ebd3ead2d5145c55e53 to your computer and use it in GitHub Desktop.
Fresh bonfire installation

Installation

  1. Update database config in application/config/database.php
  2. Update log_treshold to 1 and base_url in application/config/config.php
  3. Update bonfire/codeigniter/core/Common.php at line 257 on return $_config[0] =& $config; to below,
$_config[0] =& $config;
return $_config[0]; 

refs: http://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter

  1. Open in browser to start installation

Apply 4-sight theme

  1. Update template.admin_theme to scale in application/config/application.php
  2. Copy & paste 4-sight home/themes/scale to public/themes/scale
  3. Copy & paste 4-sight home/bonfire/modules/builder to application/modules/builder
  4. Copy & paste 4-sight home/bonfire/modules/ui to application/modules/ui
  5. Replace application/core/MY_Model.php with 4-sight home/application/core/MY_Model.php
  6. Update public/themes/scale/partials/_header.php at line 142 to 151 to below for now;
$unread_notifications = false;
$last_unread_notifications = false;

Install eloquent

  1. Create a composer.json file with below content;
{
    "autoload": {
        "classmap": [
            "application/models"
        ]
    },
    "require": {
        "illuminate/database": "~5.2"
    }
}
  1. Insert below line to index.php
require_once '../vendor/autoload.php';
  1. 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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment