<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>MinorProbrem&#187; smarty</title>
	<atom:link href="http://hmlab.info/minor/tag/smarty/feed/" rel="self" type="application/rss+xml" />
	<link>http://hmlab.info/minor</link>
	<description>グダグダ日記</description>
	<lastBuildDate>Wed, 27 Apr 2011 21:48:54 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hmlab.info/minor/tag/smarty/feed/" />
		<item>
		<title>XAMPPにSmartyをインストールする時の注意点</title>
		<link>http://hmlab.info/minor/2008/04/xamppsmarty/</link>
		<comments>http://hmlab.info/minor/2008/04/xamppsmarty/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 04:34:26 +0000</pubDate>
		<dc:creator>Hex68</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://hmlab.info/wordpress/2008/04/xamppsmarty.html</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>Windows環境に手軽にＡｐａｃｈｅ＋ＭＹＳＱＬ＋ＰＨＰをインストールできる<a href="http://www.apachefriends.org/jp/xampp-windows.html">ＸＡＭＰＰ</a>。</p>
<p>LAMP（Ｌｉｎｕｘ＋Ａｐａｃｈｅ＋ＭＹＳＱＬ＋ＰＨＰ）じゃなくてＷＡＭＰ？と言うのだろうか。</p>
<p>サーバーにアップロードする前のローカルテストで使用している人も多いと思われる。</p>
<p>&nbsp;</p>
<p>Apacheとか個別に設定するのもめんどくさいし、PHPの４と５の切り替えもすぐなので僕も使っているのだが、この環境にPHPのテンプレートエンジンであるSmartyを導入する際、少し癖があるので、そのあたりを書いておきたい。</p>
<p><span id="more-3453"></span></p>
<h4>XAMPPにSmartyをインストールする方法 </h4>
<p><strong>１ Smartyをダウンロードしてくる</strong>     <br /><a href="http://www.smarty.net/">http://www.smarty.net/</a>     <br />&#160;&#160;&#160; 特に問題なければLatestのzip形式を選択     </p>
<p><strong>２ 解凍したZIPを内のlibsフォルダをXAMPPのPHPフォルダにコピーする</strong>     </p>
<p><strong>３ php.iniを変更して、smartyを読み込ませる</strong> </p>
<p> php.ini中のinclude_pathにsmartyの記述を追加します。    <br />&#160;&#160;&#160; XAMPP1.6.6.aの場合、XAMPPの場合既にPearの記述があると思いますので、その後ろに;（セミコロン）でつなげて追記してください。 </p>
<blockquote><p>&#160;&#160;&#160; 例：Cドライブ直下にXAMPPをインストールしていた場合       <br />&#160;&#160; <strong> include_path = &quot;.;C:xamppphppear;D:xamppphplibs&quot;; </strong>      <br />&#160;&#160;&#160; </p>
</blockquote>
<p><strong>＊注意 </strong></p>
<p><strong>&#160;</strong>&#160;&#160; XAMPPの場合、php.iniが3つ存在します。</p>
<p> （php/php.ini, php/php4/php.ini, apache/bin/php.ini）    <br />&#160;&#160;&#160; </p>
<p> その中で有効なのは<strong>apache/binフォルダのphp.ini</strong>なので、これを変更してください。後の2ファイルは無視してもオッケーです。</p>
<p>&#160;</p>
<p><strong>４ apacheを再起動</strong> </p>
<p>&#160;</p>
<p>これでXamppでもSmartyが使えるはずです。お試しアレ。</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<div class="wlWriterSmartContent" id="scid:81867AAF-BB02-476b-AE5D-12BDAC2E750D:3a51a422-5fbc-4f9a-9409-d44c813456ec" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798108839/minorproble06-22/ref=nosim" target="_blank"><img alt="Smarty入門~PHP5＋テンプレート・エンジンでつくるMVCアプリケーション~" src="http://ecx.images-amazon.com/images/I/51ASREWVA1L._SL160_.jpg"><br />Smarty入門~PHP5＋テンプレート・エンジンでつくるMVCアプリケーション~ 山田 祥寛 </a></div>
]]></content:encoded>
			<wfw:commentRss>http://hmlab.info/minor/2008/04/xamppsmarty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://hmlab.info/minor/2008/04/xamppsmarty/" />
	</item>
	</channel>
</rss>

