Welcome Guest, Not a member yet? Register   Sign In
php-activerecord no queries in profiler output
#1

[eluser]iansane[/eluser]
Hi,

I have php-active record spark and debug-toolbar spark installed on 2.0.3 and everything seems to be working great except that the active-record queries don't show up in the profiler.

It is set by default I believe to show queries but it is showing 0 queries when I know the phpar queries are running.

For example for the home page
Code:
$this->view_data['posts'] = Post::all();

Does anyone know how to make those type of phpar queries show up in the profiler output?

Or should they already be showing up and I have a problem in my code somewhere?

Thanks

Edit:
Wanted to add in the debug toolbar under queries 0 is a message 'Database driver is not currently loaded'

This spark comes with a profiler.php which strangely (strange to me) has a class definition
class CI_Profiler extends CI_Loader. It looks like it is for overriding the CI profiler or should replace it. When I view loaded files both profiler.php files are loaded since I am using MY_Controller to autoload sparks.




Theme © iAndrew 2016 - Forum software by © MyBB