how can i get {elapsed_time} variable in controller |
(06-05-2015, 11:59 AM)mwhitney Wrote: I believe that, even if you use $this->benchmark->elapsed_time(), it's just going to output '{elapsed_time}', because the total execution time isn't available until the Output class makes the substitution. if i use $this->benchmark->elapsed_time() in template it prints {elapsed_time} that is pseudovariable. /** * Render page * * @param string $file * @param array $arguments * @return null */ public function make($file = false) { if($file) { echo $this->engine->view()->make($file, ci()->data); } else { $controller = ci()->router->fetch_class(); $method = ci()->router->fetch_method(); echo $this->engine->view()->make($controller.'.'.$method, ci()->data); } } |
Messages In This Thread |
how can i get {elapsed_time} variable in controller - by ngangchill - 06-05-2015, 10:19 AM
RE: how can i get {elapsed_time} variable in controller - by mwhitney - 06-05-2015, 11:59 AM
RE: how can i get {elapsed_time} variable in controller - by ngangchill - 06-05-2015, 01:42 PM
RE: how can i get {elapsed_time} variable in controller - by InsiteFX - 06-06-2015, 11:40 PM
|