Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

View Factory #921

Closed
robocoder opened this Issue · 1 comment

1 participant

@robocoder
Collaborator

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
Collaborator

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.