Description

Base class of all plugin Controllers.

Plugins that wish to add display HTML should create a Controller that either extends from this class or from {@link ControllerAdmin}. Every public method in the controller will be exposed as a controller method and can be invoked via an HTTP request.

Learn more about Piwik's MVC system here.

Examples

Defining a controller**

class Controller extends \Piwik\Plugin\Controller { public function index() { $view = new View("@MyPlugin/index.twig"); // ... setup view ... return $view->render(); } }

Linking to a controller action**

Link

Type hierarchy

Class usage:

This class is not referred by any other class/interface/traits in packagist packages.