Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ dhakazone.com/ catalog/ controller/ event/ |
|
<?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); } } } }