View Factory #921

robocoder opened this Issue Aug 11, 2009 · 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 Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment