Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mugi516 committed Dec 1, 2021
1 parent 9f3f6f3 commit f2c180a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/PhalconDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,13 @@ public function attachView($view)
}

$templates = $viewProfiler->templates;
$templates[$viewFilePath]['startTime'] = microtime(true);
if(is_array($viewFilePath)){
foreach($viewFilePath as $infos_path){
$templates[$infos_path]['startTime'] = microtime(true);
}
}else{
$templates[$viewFilePath]['startTime'] = microtime(true);
}
$viewProfiler->templates = $templates;
});
$eventsManager->attach('view:afterRenderView', function ($event, $view) use ($viewProfiler) {
Expand Down

0 comments on commit f2c180a

Please sign in to comment.