allow calling of init method for views if view tests get complicated due to complex constructors

This commit is contained in:
John Bintz 2009-06-16 21:22:22 -04:00
parent 09d50fab0e
commit e06e798adf
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class ComicPressManagerAdmin {
function _show_view($view) {
require_once(dirname(__FILE__) . '/views/' . $view . ".php");
$view = new $view();
if (method_exists($view, "init")) { $view->init(); }
$view->render();
}