Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

Fixing the issue interpolateQuery#24

Merged
lonnieezell merged 3 commits intolonnieezell:masterfrom
aa6my:master
Aug 3, 2016
Merged

Fixing the issue interpolateQuery#24
lonnieezell merged 3 commits intolonnieezell:masterfrom
aa6my:master

Conversation

@aa6my
Copy link
Contributor

@aa6my aa6my commented Aug 3, 2016

Issue

Type: Error
Message: Call to undefined method CI_Profiler::interpolateQuery()
Filename: .../application/third_party/codeigniter-forensics/libraries/Profiler.php
Line Number: 256

Successfully running
eloquent

Reminder
Make sure enable query log in database.php in config to make it successfully running.

use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;

$capsule->addConnection(array(
    'driver'    => 'mysql',
    'host'      => $db['default']['hostname'],
    'database'  => $db['default']['database'],
    'username'  => $db['default']['username'],
    'password'  => $db['default']['password'],
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => $db['default']['dbprefix'],
));

// Make this Capsule instance available globally via static methods... (optional)
$capsule->setAsGlobal();

// Setup the Eloquent ORM... (optional, unless you've used setEventDispatcher())
$capsule->bootEloquent();

// Enable Query Log, if not enable Profiler wont show query.
$connection = $capsule->getConnection();
$connection->enableQueryLog();

$config['post'] = TRUE;
$config['queries'] = TRUE;
$config['eloquent'] = FALSE;
$config['eloquent'] = TRUE;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want Eloquent enabled by default. Looks fine otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but those effect when common people using composer. the config active as git repo in thirdparty. so what the best solution to trigger TRUE and FALSE for enable eloquent ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lonnieezell can close and merge.

We don't want Eloquent enabled by default
@aa6my
Copy link
Contributor Author

aa6my commented Aug 3, 2016

Done make set default to false

@lonnieezell
Copy link
Owner

Great. Thanks!

@lonnieezell lonnieezell merged commit 2a680ed into lonnieezell:master Aug 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants