FEATURE: add reset() method to CurrentTemplate helper
This commit is contained in:
@@ -46,4 +46,12 @@ class CurrentTemplate
|
||||
|
||||
return $template->handler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset currently set template and load another one on next call of get() method.
|
||||
*/
|
||||
public static function reset()
|
||||
{
|
||||
self::$initialized = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user