Skip to content


View Factory #921

robocoder opened this Issue · 1 comment

1 participant


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');

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

@robocoder robocoder added this to the Piwik 0.4.4 milestone
@robocoder robocoder self-assigned this
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.