allow calling of init method for views if view tests get complicated due to complex constructors
This commit is contained in:
parent
09d50fab0e
commit
e06e798adf
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue