<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>精東·博客 &#187; Magent</title>
	<atom:link href="http://www.wemvc.com/tag/magent/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wemvc.com</link>
	<description>男人的胸怀是委屈撑大的。</description>
	<lastBuildDate>Tue, 10 Jan 2012 04:26:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>深入理解Magento – 第七章 – 自定义Magento系统配置</title>
		<link>http://www.wemvc.com/1030.html</link>
		<comments>http://www.wemvc.com/1030.html#comments</comments>
		<pubDate>Thu, 20 May 2010 04:46:35 +0000</pubDate>
		<dc:creator>精东</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Magent]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[电子商务]]></category>

		<guid isPermaLink="false">http://www.wemvc.com/?p=1030</guid>
		<description><![CDATA[Magento拥有十分强大的后台管理系统。作为一名开发人员，这套后台管理系统可以让你的用户简单直接的配置Magento系统或者你创建的模块。和Magento的其他功能一样，你第一次使用这套管理系统的时候可能觉得很麻烦，但是一旦你上手了，你会发现它强大的功能是那么吸引人。那么让我们开始吧。我们这一章的例子依然是基于Helloworld模块。

添加系统配置文件
首先我们要为模块添加一个系统配置文件。这个文件和“config.xml”是不搭界的

app/code/local/Zhlmmc/Helloworld/etc/system.xml

	和全局配置（global config）相似，系统配置也是单独存储的。我们可以通过下面这段代码来获取系统配置文件

//header('Content-Type: text/xml');         
	header&#40;'Content-Type: text/plain'&#41;;         
	echo $config = Mage::getConfig&#40;&#41;
	-&#62;loadModulesConfiguration&#40;'system.xml'&#41;        
	-&#62;getNode&#40;&#41;
	-&#62;asXML&#40;&#41;;          
	exit;

	你可以把这段代码放到任何执行函数（Action Method）中。“loadModulesConfiguration”方法会搜索所有配置好的模块的“etc”文件夹，寻找以传入的参数为名字的文件，在这个例子中是“system.xml”。Magento有很多不同的配置文件，比如api.xml， wsdl.xml， wsdl2.xml， convert.xml， compilation.xml， install.xml。你可以为你创建的模块创建这些配置文件。
添加一个标签页
我们首先在后台系统管理页面添加一个标签页（Tab）。标签页就是后台“System->Configuration”页面左侧的导航栏。默认的标签页有General，Catalog，Customers，Sales，Services等等。我们来创建一个新的标签页叫做“Hello Config”。创建如下文件

Location: app/code/local/Zhlmmc/Helloworld/etc/system.xml
	&#60;config&#62;
	    &#60;tabs&#62;
	 [...]]]></description>
		<wfw:commentRss>http://www.wemvc.com/1030.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

