Welcome Guest, Not a member yet? Register   Sign In
How can i display benchmark without load a view file ?
#1

[eluser]nodulia[/eluser]
Hello,
I use JsonCI because i work with ajax.
I find a method to debug my project with the output class but i not use a view file because i use $this->jsonci->sendJSON($res); to send the result.
How can i display benchmark without load a view file ?
Thanks a lot
#2

[eluser]xwero[/eluser]
you have to add benchmark->elapsed_time() to the sendJSON method.
#3

[eluser]nodulia[/eluser]
In fact, i'm interested to get all SQL for debug by the following code:
Code:
$res = array(
'success' => false
,'errors' => $error
,'debug' => $this->output->get_output()
);
$this->jsonci->sendJSON($res);

But in fact $this->output->get_output() is null

Thanks a lot




Theme © iAndrew 2016 - Forum software by © MyBB