本文整理汇总了PHP中PHPTAL::include_path_backup方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPTAL::include_path_backup方法的具体用法?PHP PHPTAL::include_path_backup怎么用?PHP PHPTAL::include_path_backup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPTAL
的用法示例。
在下文中一共展示了PHPTAL::include_path_backup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setIncludePath
/**
* 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++;
}