<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lifetype.org.tw/skins/common/feed.css?164"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-tw">
		<id>http://wiki.lifetype.org.tw/index.php?action=history&amp;feed=atom&amp;title=Template_Set_and_Template</id>
		<title>Template Set and Template - 修訂沿革</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.lifetype.org.tw/index.php?action=history&amp;feed=atom&amp;title=Template_Set_and_Template"/>
		<link rel="alternate" type="text/html" href="http://wiki.lifetype.org.tw/index.php?title=Template_Set_and_Template&amp;action=history"/>
		<updated>2026-05-30T01:38:15Z</updated>
		<subtitle>本站上此頁的修訂沿革</subtitle>
		<generator>MediaWiki 1.13.2</generator>

	<entry>
		<id>http://wiki.lifetype.org.tw/index.php?title=Template_Set_and_Template&amp;diff=1998&amp;oldid=prev</id>
		<title>Markwins在2008年6月23日 (一) 09:27</title>
		<link rel="alternate" type="text/html" href="http://wiki.lifetype.org.tw/index.php?title=Template_Set_and_Template&amp;diff=1998&amp;oldid=prev"/>
				<updated>2008-06-23T09:27:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←上一修訂&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;在2008年6月23日 (一) 09:27所做的修訂版本&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;簡介 &lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;简介 &lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;LifeType使用模版系統，來清楚的區分網頁內容與核心程式。這樣做的好處是：模版開發者僅需要動用到控制網頁內容的參數部分，不需要動用到核心程式碼。如此一來，就減低了搞壞核心程式碼的風險，即使在多人使用的情況下，管理者也不用擔心使用者修改模版時會破壞到LifeType的核心程式。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;LifeType使用模版系统，来清楚的区分网页内容与核心程式。这样做的好处是：模版开发者仅需要动用到控制网页内容的参数部分，不需要动用到核心程式码。如此一来，就减低了搞坏核心程式码的风险，即使在多人使用的情况下，管理者也不用担心使用者修改模版时会破坏到LifeType的核心程式。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;從開發者的角度來看，因為php語法與html語法可以並存，這會造成網站維護不易，且程式碼無法重複利用。因此，使用模版將網頁內容與程式分開，會易於管理網頁，且程式碼也能重複被利用。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;从开发者的角度来看，因为php语法与html语法可以并存，这会造成网站维护不易，且程式码无法重复利用。因此，使用模版将网页内容与程式分开，会易于管理网页，且程式码也能重复被利用。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;LifeType是使用Smarty引擎來產生網頁，要學習Smarty，可以參考其官方網頁上的手冊文件：&lt;/del&gt;[http://smarty.php.net/crashcourse.php http://smarty.php.net/crashcourse.php] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;與 &lt;/del&gt;[http://smarty.php.net/manual/en/ http://smarty.php.net/manual/en/]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;LifeType是使用Smarty引擎来产生网页，要学习Smarty，可以参考其官方网页上的手册文件：&lt;/ins&gt;[http://smarty.php.net/crashcourse.php http://smarty.php.net/crashcourse.php] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;与 &lt;/ins&gt;[http://smarty.php.net/manual/en/ http://smarty.php.net/manual/en/]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;在瞭解LifeType模版運作之前，使用者至少要先知道Smarty語法。基本上，Smarty語法需在「 &lt;/del&gt;{ &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;」與「 &lt;/del&gt;} &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;」符號包圍之下才能運作，否則網頁呈現可能會出現錯誤。Smarty有許多內建的功能，但就LifeType來說，僅使用到php物件的部分，我們只需要在模版中呼叫LifeType使用到的物件，並給予屬性值即可。&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;在瞭解LifeType模版运作之前，使用者至少要先知道Smarty语法。基本上，Smarty语法需在「 &lt;/ins&gt;{ &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;」与「 &lt;/ins&gt;} &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;」符号包围之下才能运作，否则网页呈现可能会出现错误。Smarty有许多内建的功能，但就LifeType来说，仅使用到php物件的部分，我们只需要在模版中唿叫LifeType使用到的物件，并给予属性值即可。&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-05-30 01:38:15 --&gt;
&lt;/table&gt;</summary>
		<author><name>Markwins</name></author>	</entry>

	<entry>
		<id>http://wiki.lifetype.org.tw/index.php?title=Template_Set_and_Template&amp;diff=1686&amp;oldid=prev</id>
		<title>Bibicall在2006年2月4日 (六) 08:00</title>
		<link rel="alternate" type="text/html" href="http://wiki.lifetype.org.tw/index.php?title=Template_Set_and_Template&amp;diff=1686&amp;oldid=prev"/>
				<updated>2006-02-04T08:00:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 簡介 ==&lt;br /&gt;
&lt;br /&gt;
LifeType使用模版系統，來清楚的區分網頁內容與核心程式。這樣做的好處是：模版開發者僅需要動用到控制網頁內容的參數部分，不需要動用到核心程式碼。如此一來，就減低了搞壞核心程式碼的風險，即使在多人使用的情況下，管理者也不用擔心使用者修改模版時會破壞到LifeType的核心程式。&lt;br /&gt;
&lt;br /&gt;
從開發者的角度來看，因為php語法與html語法可以並存，這會造成網站維護不易，且程式碼無法重複利用。因此，使用模版將網頁內容與程式分開，會易於管理網頁，且程式碼也能重複被利用。&lt;br /&gt;
&lt;br /&gt;
LifeType是使用Smarty引擎來產生網頁，要學習Smarty，可以參考其官方網頁上的手冊文件：[http://smarty.php.net/crashcourse.php http://smarty.php.net/crashcourse.php] 與 [http://smarty.php.net/manual/en/ http://smarty.php.net/manual/en/]&lt;br /&gt;
&lt;br /&gt;
在瞭解LifeType模版運作之前，使用者至少要先知道Smarty語法。基本上，Smarty語法需在「 { 」與「 } 」符號包圍之下才能運作，否則網頁呈現可能會出現錯誤。Smarty有許多內建的功能，但就LifeType來說，僅使用到php物件的部分，我們只需要在模版中呼叫LifeType使用到的物件，並給予屬性值即可。&lt;/div&gt;</summary>
		<author><name>Bibicall</name></author>	</entry>

	</feed>