FEATURE: add reset() method to CurrentTemplate helper

This commit is contained in:
Michal Kváček
2016-09-27 22:27:53 +02:00
parent 80dba6d9b7
commit 846cfef1b8
+8
View File
@@ -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;
}
}