@robocoder opened this Issue on August 11th 2009 Contributor

Implement view factory method in Piwik_View.

Direct instantiation: (plugins/CoreUpdater/Controller.php)

    $view = new Piwik_View('CoreUpdater/templates/update_welcome.tpl');

Factory method: (uses caller context to determine path)

    $view = Piwik_View::factory('update_welcome');
@robocoder commented on August 11th 2009 Contributor

In [1387], fixes #921 - add factory method to Piwik_View; tested with CoreUpdater (browser and command line)

This Issue was closed on August 11th 2009
Powered by GitHub Issue Mirror