Mage::log($name, null, 'events.log', true);
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>Events file logger</title> </head> <body> <?php $lines = file($_GET['file_path']); foreach($lines as $lineNumber => $lineContent) { $eventName = explode('):', $lineContent); $events[] = $eventName[1]; } $events = array_values(array_unique($events)); foreach ($events as $key => $event) { echo "{$key}.{$event}</br>"; } ?> </body> </html>and access likelocalhost/poc/magento/events_reader.php?file_path=E:\wamp\www\magento\var\log\events.log
Tuesday, July 19, 2016
get all events name in maegnto
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment