Skip to content

Commit

Permalink
Get class name to allow child classes to extend this one
Browse files Browse the repository at this point in the history
  • Loading branch information
xmeltrut committed Dec 30, 2015
1 parent f13f439 commit 2562d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WingCommander.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function init ($options = array())
Flight::view()->render($template, $data, $toVar);
});

Flight::register('view', 'WingCommander', $options);
Flight::register('view', get_called_class(), $options);
}

/**
Expand Down

0 comments on commit 2562d07

Please sign in to comment.