/** * Cleans the compiler state after the template compilation. * It is necessary in the exception processing - if the exception * is thrown in the middle of the compilation, the compiler becomes * useless, because it is locked. The compilation algorithm automatically * filters the exceptions, cleans the compiler state and throws the captured * exceptions again, to the script. * * @static */ public static function cleanCompiler() { self::$_recursionDetector = null; self::$_templates = array(); }