Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#921 closed New feature (fixed)

View Factory

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: Piwik 0.4.4
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

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

Change History (5)

comment:1 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed
  • Summary changed from Piwik_ViewFactory to View Factory

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

comment:2 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)

comment:3 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)

comment:4 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)

comment:5 Changed 5 years ago by vipsoft (robocoder)

  • Description modified (diff)
Note: See TracTickets for help on using tickets.