/** * Set include path to contain PHPTAL's directory. * Every call to setIncludePath() MUST have corresponding call * to restoreIncludePath()! * * Calls to setIncludePath/restoreIncludePath can be nested. * * @return void */ public static final function setIncludePath() { if (!self::$include_path_set_nesting) { self::$include_path_backup = get_include_path(); set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); } self::$include_path_set_nesting++; }