first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
class ControllerEventDebug extends Controller {
public function before(&$route, &$args) {
if ($route == 'common/home') { // add the route you want to test
$this->session->data['debug'][$route] = microtime();
}
}
public function after($route, &$args, &$output) {
if ($route == 'common/home') { // add the route you want to test
if (isset($this->session->data['debug'][$route])) {
$log_data = array(
'route' => $route,
'time' => microtime() - $this->session->data['debug'][$route]
);
$this->log->write($log_data);
}
}
}
}