<< Back to man.ChinaUnix.net

$request_use_auto_globals
自动全局变量

Specifies if Smarty should use php's $HTTP_*_VARS[] ($request_use_auto_globals=false which is the default value) or $_*[] ($request_use_auto_globals=true). This affects templates that make use of {$smarty.request.*}, {$smarty.get.*} etc. . Caution: If you set $request_use_auto_globals to true, variable.request.vars.order has no effect but php's configuration value gpc_order is used.
指定Smarty是否使用php的$HTTP_*_VARS[]数组变量(默认$request_use_auto_globals=false)或$_*[]数组($request_use_auto_globals=true)变量.这对使用了{$smarty.request.*}, {$smarty.get.*}等标记的模板有影响.值得注意的是:如果设置$request_use_auto_globals为真,variable.request.vars.order就无效了但php的gpc_order配置值还有作用.