FuelPHPのQuick ProfilerでDatabase QueryのProfileをONにする
FuelPHPのQuick Profilerはよくできているなぁと思っていたら、Databaseの部分が0 Queriesとなっていた。

Database QueryのProfilingをONにするには、dbの設定も必要で、DBのconfigで ‘profiling’ => true とすればOK。
fuel/app/config/db.config など
<?php
/**
* Use this file to override global defaults.
*
* See the individual environment DB configs for specific config information.
*/
return array(
'default' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => 'mysql:host=localhost;dbname=test',
'username' => 'test',
'password' => 'testpasswd',
'persistent' => false,
'compress' => false,
),
'identifier' => '`',
'table_prefix' => '',
'charset' => 'utf8',
'enable_cache' => false,
'profiling' => true, // ココ
),
);
設定後、無事表示されました。

関連記事
- FuelPHP1.6に更新したら、Composer is not installed エラー。
- FuelPHP1.5でPaginationにTwitter bootstrap 2.xのpaginationの形式でタグを出力する。
- phpフレームワークのパフォーマンス比較サイト(海外)
- phpフレームワークのトレンド。fuelphp上がってる?