Loading Stats events from the database
$statsEventItems = new \Cherrycake\Stats\StatsEvents([
"p" => [
"type" => "CherrycakeApp\StatsEventHomeView",
"limit" => 50
]
]);
foreach ($statsEventItems as $statsEvent) {
echo
$e->Locale->formatTimestamp($statsEvent->timestamp).
": ".$statsEvent->typeDescription.
": ".$statsEvent->count.
"\n";
}Last updated