Alexa Widget Plugin


#1

Can someone tell me why this Alexa Widget plugin is not compatible with the latest 2.61 version? It’s my first plugin so I am a bit lost where the mistake is

Thanks!

=========================

<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * @version $Id: AlexaWidget.php * * @category Piwik_Plugins * @package Piwik_AlexaWidget */ namespace Piwik\Plugins\AlexaWidget; /** * This plugin only provides an AlexaWidget.php file. * @package Piwik_AlexaWidget * */ class Piwik_AlexaWidget extends Piwik_Plugin { /** *Return information about this plugin * * @see Piwik_Plugin * * @return array */ public function getInformation() { return array( 'description' => Piwik_Translate('My Alexa Widget'), 'author' => 'Jackie', 'author_homepage' => 'http://iPivot.co/', 'version' => '0.1', ); } } Piwik_AddWidget('Example Widgets', 'Alexa Traffic stats', 'ExampleAlexa', 'alexa'); class Piwik_AlexaWidget_Controller extends Piwik_Controller { /** * Simple alexa statistics output * */ function alexa() { echo '; } }