<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post//</link>
<title><![CDATA[[原]Smarty的保留变量为null]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Php]]></category>
<pubDate>Thu, 03 Jun 2010 10:33:53 +0000</pubDate> 
<guid>https://www.linuxfly.org/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;Smarty 中可用的变量一般有三种：1、来自PHP页面，通过assign()方法传递的变量；2、保留变量，即相当于PHP中预定义的变量；3、从配置文件中读取的变量。引用方法很简单，我就不详细说明了，具体可见：<a href="http://www.hbcms.com/main/smarty/language.variables.html" target="_blank">这里</a>。不过，我遇到一个问题，就是在模板中引用保留变量时，其值为空（null ）。开始感觉比较奇怪，后发现是其引用于PHP的php.ini中register_long_arrays设置、Smarty对象的request_use_auto_globals 属性有关。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/php/" rel="tag">php</a> , <a href="https://www.linuxfly.org/tags/smarty/" rel="tag">smarty</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post//#blogcomment</link>
<title><![CDATA[[评论] [原]Smarty的保留变量为null]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.linuxfly.org/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>