<?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>HattaraTecLog &#187; Zend Framework</title>
	<atom:link href="http://teclog.hattara.info/?cat=39&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://teclog.hattara.info</link>
	<description>LinuxネタとかPHPネタとかの技術ログ</description>
	<lastBuildDate>Tue, 18 Nov 2014 12:15:20 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>nginxでZend Framework(rewrite)を利用する</title>
		<link>http://teclog.hattara.info/?p=293</link>
		<comments>http://teclog.hattara.info/?p=293#comments</comments>
		<pubDate>Wed, 12 Jan 2011 12:46:09 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=293</guid>
		<description><![CDATA[nginx + php-fpm + pecl-apcで構築されたサーバでZend Frameworkを利用する [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>nginx + php-fpm + pecl-apcで構築されたサーバでZend Frameworkを利用する際に、<br />
.htaccessが使えないことで以下のような記述ができませんでした。</p>
<blockquote><p>
## リライトエンジンを有効に。<br />
RewriteEngine On</p>
<p>## リライトの対象パスを指定<br />
RewriteBase /</p>
<p>## リライトルールを宣言（画像、CSS、Javascript）以外をindex.phpに転送する。<br />
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
</p></blockquote>
<p>通常の Apache の場合などには、.htaccessで上記のように表現できますが、<br />
nginxでは、現状各ユーザ毎のフォルダに設置して対応する方法がないようです。</p>
<p>具体的にいうと、nginx.confでincludeをサポートしているので、<br />
各ユーザ領域に設定ファイルの断片をおいて、includeさせることまではできると思われますが、<br />
そこを修正しても、読み込み直さないと反映されないので、意味がないという事になります。</p>
<p>よって、対策としては、容易に設定修正できないという難点は致し方ないとして、<br />
/etc/nginx/nginx.conf(ファイルパスは環境により異なります。)、<br />
または、includeしている　/etc/nginx/conf.d/***.confの中の該当のドメイン設定部分に<br />
以下のように追記します。</p>
<blockquote><p>
server {<br />
    listen        80;<br />
    server_name  test.example.com ;<br />
    location / {<br />
        root /home/Web;<br />
        index  index.php index.cgi index.html index.htm;<br />
        rewrite ([^(js|ico|gif|jpg|png|css)])$ index.php;<br />
    }<br />
    location ~ .php$ {<br />
        fastcgi_pass 127.0.0.1:9000;<br />
        fastcgi_index index.php;<br />
        fastcgi_param SCRIPT_FILENAME /home/Webdir/hattara.info/main/web/$fastcgi_script_name;<br />
        fastcgi_param PATH_INFO $fastcgi_script_name;<br />
        include /etc/nginx/fastcgi_params;<br />
    }<br />
}
</p></blockquote>
<p>これでとりあえず動くようになります。<br />
現状だと、逆にいえばこれしかできないような気もする。。</p>
<p>.htaccessみたいに外部で設定できるようにできたり、rewriteの設定がもう少しわかりやすいといいなぁと思うけど、<br />
これが速度とのトレードオフなのかもしれないですね。</p>
<p>ということで、rewriteとかの設定で、超はまりまくったけど、今日はこの辺で。</p>
<table cellpadding="0" cellspacing="0" border="0" style=" border:1px solid #ccc; width:170px;">
<tr style="border-style:none;">
<td style="vertical-align:top; border-style:none; padding:10px 10px 0pt;"><a href="http://px.a8.net/svt/ejp?a8mat=1NWEVP+1HL1ZU+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FNginx-Http-Server-Clement-Nedelcu%2Fdp%2F1849510865%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-10084-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D1849510865" target="_blank"><img border="0" alt="" src="http://ecx.images-amazon.com/images/I/51gax2MB8wL._SS160_.jpg" /></a></td>
</tr>
<tr style="border-style:none;">
<td style="font-size:12px; vertical-align:middle; border-style:none; padding:10px;">
<p style="padding:0; margin:0;"><a href="http://px.a8.net/svt/ejp?a8mat=1NWEVP+1HL1ZU+249K+BWGDT&#038;a8ejpredirect=http%3A%2F%2Fwww.amazon.co.jp%2FNginx-Http-Server-Clement-Nedelcu%2Fdp%2F1849510865%253FSubscriptionId%253DAKIAJG4HK2PMU5Z4Q6YQ%2526tag%253Da8-affi-10084-22%2526linkCode%253Dxm2%2526camp%253D2025%2526creative%253D165953%2526creativeASIN%253D1849510865" target="_blank">Nginx Http Server</a></p>
<p style="color:#cc0000; font-weight:bold; margin-top:10px;">新品価格<br/>￥3,964<span style="font-weight:normal;">から</span><br/><span style="font-size:10px; font-weight:normal;">(2010/12/20 19:36時点)</span></p>
</td>
</tr>
</table>
<p><img border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=1NWEVP+1HL1ZU+249K+BWGDT" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=293</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Fatal error:  Class &#8216;DOMDocument&#8217; not foundに悩まされ</title>
		<link>http://teclog.hattara.info/?p=177</link>
		<comments>http://teclog.hattara.info/?p=177#comments</comments>
		<pubDate>Thu, 26 Aug 2010 05:01:30 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=177</guid>
		<description><![CDATA[昨日から以下のようなエラーに頭を抱えていました。 PHP Warning: Zend_Loader::incl [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>昨日から以下のようなエラーに頭を抱えていました。</p>
<blockquote><p>
PHP Warning:  Zend_Loader::include_once(DOMDocument.php) [<a href='function.Zend-Loader-include-once'>function.Zend-Loader-include-once</a>]: failed to open stream: No such file or directory in /home/&#8230;./ZendFramework/library/Zend/Loader.php on line 146</p>
<p>PHP Warning:  Zend_Loader::include_once() [<a href='function.include'>function.include</a>]: Failed opening &#8216;DOMDocument.php&#8217; for inclusion (include_path=&#8217;../app/framework/ZendFramework/library:../app/modules/default/models:.:/usr/share/pear:/usr/share/php&#8217;) in /home/&#8230;./ZendFramework/library/Zend/Loader.php on line 146</p>
<p>PHP Fatal error:  Class &#8216;DOMDocument&#8217; not found in /home/&#8230;./ZendFramework/library/Zend/Feed.php on line 195
</p></blockquote>
<p>Zend_Loader（Zend_Loader.php）というかZend_Loader_Autoloader（Zend/Loader/Autoloader.php）の問題かと思っていたが、<br />
全然関係ないところでエラーになっているのがわかりました。</p>
<p>ただただ、Zend_FeedとかZend_Feed_RssとかでFeed処理をしたかっただけなのだが、これがでてた。</p>
<p>原因としては、至極簡単で、php自体をrpmというかyumで入れたわけですが、<br />
xmlというかdomというかを扱うためのパッケージが足りなかったという事です。</p>
<p>以下の手順で復旧（利用できるように）できました。</p>
<blockquote><p>
※XML用のモジュールをインストールする<br />
yum install php-xml</p>
<p>※読み込み元のApacheを再起動する。<br />
/etc/rc.d/init.d/httpd stop<br />
/etc/rc.d/init.d/httpd start
</p></blockquote>
<p>ということでした。<br />
tar.gzのアーカイブからコンパイルとかしてる人は、<br />
たぶん　&#8211;with-dom とかでいけるんじゃないですかね。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=177</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Loader::registerAutoloadは賞味期限切れ</title>
		<link>http://teclog.hattara.info/?p=175</link>
		<comments>http://teclog.hattara.info/?p=175#comments</comments>
		<pubDate>Wed, 25 Aug 2010 12:55:43 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=175</guid>
		<description><![CDATA[今Zend_Frameworkの1.10.2を利用しているわけですが、 Zend_Loader::regist [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>今Zend_Frameworkの1.10.2を利用しているわけですが、<br />
Zend_Loader::registerAutoload使ってたら、<br />
以下のようなNoticeなるエラーというかアナウンスというか警告というか出たわけです。</p>
<blockquote><p>
PHP Notice:  Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /home/Userdir/hattara.info/sub/api/app/framework/ZendFramework/library/Zend/Loader.php on line 258
</p></blockquote>
<p>ようするに何がいいたいかというと、Versionが2.0.0になったら消すから、<br />
Zend_Loader::registerAutoload　はやめて、<br />
Zend_Loader_Autoloader　を使ってねとおっしゃってるようだ。</p>
<p>なので、以下にのせかえてみた。</p>
<blockquote><p>
    require_once &#8216;Zend/Loader.php&#8217;;<br />
    Zend_Loader::registerAutoload();<br />
    ↓<br />
    require_once &#8216;Zend/Loader/Autoloader.php&#8217;;<br />
    $autoloader = Zend_Loader_Autoloader::getInstance();<br />
    $autoloader->setFallbackAutoloader(true);
</p></blockquote>
<p>とりあえずこれで、エラーはでなくなりましたとさ。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=175</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Config_Iniで画面が真っ白に。</title>
		<link>http://teclog.hattara.info/?p=170</link>
		<comments>http://teclog.hattara.info/?p=170#comments</comments>
		<pubDate>Wed, 25 Aug 2010 10:25:20 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=170</guid>
		<description><![CDATA[初歩的なことなんだと思うんですが、 Zend_Config_Iniでiniを読み込ませたときに、画面が真っ白（ [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>初歩的なことなんだと思うんですが、<br />
Zend_Config_Iniでiniを読み込ませたときに、画面が真っ白（ホワイトアウト？）に<br />
なっちゃったわけですよ。</p>
<p>色々テストしてみた結果、読み込み側じゃなく、<br />
読み込まれるIniファイルに問題があったわけですよ。</p>
<p>【誤】</p>
<blockquote><p>test = &#8216;test&#8217;</p></blockquote>
<p>【正】</p>
<blockquote><p>test = &#8220;test&#8221;</p></blockquote>
<p>ようするにシングルクウォート（シングルコート）ではダメで、<br />
ダブルクウォート（ダブルコート）では大丈夫ということです。</p>
<p>本当にそういうことなのかどうかはわからんが、parse_ini_fileの説明に<br />
「ini ファイル上の値に英数字ではないものがある場合、 ダブルクォート(&#8220;)で囲う必要があります。 」<br />
とあるので、ダブルコートのみOKなんでしょうね。</p>
<p>そうなんでしょうね。</p>
<p>最近こんなんばっかりです。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=170</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLを表示できない。</title>
		<link>http://teclog.hattara.info/?p=82</link>
		<comments>http://teclog.hattara.info/?p=82#comments</comments>
		<pubDate>Mon, 27 Apr 2009 11:16:21 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[ZendFramework]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=82</guid>
		<description><![CDATA[ZendFrameworkの勉強と称して、PHPからXMLを表示しようとしてたわけですが、 XML表示ができず [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>ZendFrameworkの勉強と称して、PHPからXMLを表示しようとしてたわけですが、<br />
XML表示ができずに、以下のようなエラーが出てました。</p>
<blockquote><p>
XML パースエラー: タグの対応が間違っています。終了タグが必要です: </br><br />
URL: http://zend.hattara.info/Response/<br />
行番号: 11, 列番号: 3:<br />
</body><br />
&#8211;^
</p></blockquote>
<p>色々周りの方に確認してもらったりしたら、間違いがボロボロと。。。</p>
<ul type="square">
<li>ZendFrameworkでは、Controller部分には、phpの閉じかっこ「 ?> 」は記載しないらしい</li>
<li>XMLを表示する際には、タグの中はシングルクォートではなく、ダブルクォートを利用するらしい</li>
<li>「<?xml ～ ?>」は「<? ～ ?>」と競合するので、short_open_tagはOffにする必要があるらしい</li>
<li>charsetをUTF-8にしてるのに、ソースをEUCで記載してたので出たらしい</li>
</ul>
<p>というあたりがありました。<br />
なので、.htaccessで以下を追加したり各内容を修正したりしました。</p>
<blockquote><p>
php_value short_open_tag &#8220;Off&#8221;
</p></blockquote>
<p>この辺を全部対応して、どうにか動くようになりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendFrameworkで404エラー</title>
		<link>http://teclog.hattara.info/?p=67</link>
		<comments>http://teclog.hattara.info/?p=67#comments</comments>
		<pubDate>Mon, 09 Mar 2009 12:06:40 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[httpd.conf]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=67</guid>
		<description><![CDATA[.htaccessでmod_rewriteを使って転送してるつもりが、 404エラーになってしまう。 Apac [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>.htaccessでmod_rewriteを使って転送してるつもりが、<br />
404エラーになってしまう。</p>
<p>Apacheのエラーログ(error_log)では、「File does not exist:」が<br />
でてる状態なわけです。</p>
<p>こんな現象とちょっと戯れたので、メモしとく。</p>
<p>.htaccessの内容は以下。</p>
<p>## リライトエンジンを有効に。</p>
<blockquote><p>RewriteEngine On</p></blockquote>
<p>## リライトの対象パスを指定</p>
<blockquote><p>RewriteBase /</p></blockquote>
<p>## リライトルールを宣言（条件・アクセス先）</p>
<blockquote><p>RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php</p></blockquote>
<p>まあ、これで普通はmod_rewriteによって、該当領域にきたアクセスで<br />
RewriteRuleで指定されている画像など以外のものは、<br />
すべてindex.phpにアクセスされるようになるはずなんですね。</p>
<p>ここで大きな落とし穴がありました。<br />
.htaccessの書き方が問題なくても、<br />
そもそも.htaccessを有効にしてない場合があるわけです。</p>
<p>Apacheのhttpd.confに「AllowOverride」って項目があるわけです。<br />
これが「None」とかになってると、.htaccessが利用できないです。</p>
<p>これは、サーバ管理者にお願いする形になっちゃうんでしょうけど、<br />
修正するしかないですね。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendFrameworkでViewがないとエラーになりますよ。</title>
		<link>http://teclog.hattara.info/?p=48</link>
		<comments>http://teclog.hattara.info/?p=48#comments</comments>
		<pubDate>Thu, 23 Oct 2008 12:23:21 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=48</guid>
		<description><![CDATA[Hello　Worldみたいな単純な表示すらでなかったら、ショックをうけますね。 ということで、ZendFra [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hello　Worldみたいな単純な表示すらでなかったら、ショックをうけますね。</p>
<p>ということで、ZendFrameworkで以下のエラーがでたので、<br />
一応コメントを残しておく。</p>
<p>エラーは、Apacheのerror_logに出力されてました。<br />
標準出力的には、まっ白い画面でした。</p>
<blockquote><p>
PHP Fatal error:  Uncaught exception &#8216;Zend_Controller_Dispatcher_Exception&#8217; with message &#8216;Invalid controller specified (error)&#8217; in /usr/share/pear/Zend/Controller/Dispatcher/Standard.php:249\nStack trace:\n#0 /usr/share/pear/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))\n#1 /public_htmlまでのPATH/index.php(14): Zend_Controller_Front->dispatch()\n#2 {main}\n  thrown in /usr/share/pear/Zend/Controller/Dispatcher/Standard.php on line 249
</p></blockquote>
<p>【原因】<br />
該当のControllerに対応したViewが存在しない場合などに表示されるようです。<br />
他にも要因はあるんだろうけど、今回はこれでした。</p>
<p>/(APP用フォルダ)/controllers/IndexController.php (indexActionだったら)</p>
<p>が利用されている場合には、以下のViewを呼びにいくわけです。</p>
<p>/(APP用フォルダ)/views/scripts/index/index.phtml</p>
<p>要するに、<br />
/(APP用フォルダ)/views/scripts までは固定で<br />
index が Controllerの名前と紐づき、<br />
index.phtml がActionの名前と紐づくわけですね。</p>
<p>まあ、僕のは、scriptsフォルダがなかったわけですが・・・・<br />
初歩の初歩。　間違いとしては、下の下ですね。</p>
<p>※自動でレンダリング?しないようにしている場合には、大丈夫だと思う。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=48</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>pearでSmarty &amp; ZendFrameworkインストールする。</title>
		<link>http://teclog.hattara.info/?p=45</link>
		<comments>http://teclog.hattara.info/?p=45#comments</comments>
		<pubDate>Wed, 22 Oct 2008 11:36:36 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Smarty]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[ZF]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=45</guid>
		<description><![CDATA[もともとSmartyは使ってたんですが、 Zend Frameworkも勉強を始めました。 ということで、面倒 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>もともとSmartyは使ってたんですが、<br />
Zend Frameworkも勉強を始めました。</p>
<p>ということで、面倒なくインストールする方法を書いておきます。<br />
やっぱりphpまわりは、pearでインストールできると楽ですよね。</p>
<p>ということで、SmartyとZend Frameworkのpearでの設置方法です。</p>
<p>## Smarty</p>
<blockquote><p>
    pear list<br />
    pear list-channels<br />
    pear channel-discover pearified.com<br />
    pear install pearified/Smarty<br />
    pear list-channels<br />
    pear list
</p></blockquote>
<p>## Zend Framework</p>
<blockquote><p>
    pear list-channels<br />
    pear channel-discover zend.googlecode.com/svn<br />
    pear install zend/zend<br />
    pear list-channels
</p></blockquote>
<p>ただ、これをやっても、pear list で一覧に出てきません。。<br />
どうしたらいいんでしょうね。。</p>
<p>この辺は、また何かわかったら、追記することにします。</p>
<p><a href="http://px.a8.net/svt/ejp?a8mat=U70LG+CVSQKI+5WS+BWVTD&#038;a8ejpredirect=http%3A%2F%2Fbooks.rakuten.co.jp%2Frb%2FZend-Framework%25E5%25BE%25B9%25E5%25BA%2595%25E5%2585%25A5%25E9%2596%2580-%25E5%25B1%25B1%25E7%2594%25B0%25E7%25A5%25A5%25E5%25AF%259B-9784798117126%2Fitem%2F5852116%2F" target="_blank"></p>
<p style="text-align:center">ZendFrameworkのおすすめ書籍</p>
<p><img border="0" alt="" src="http://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7981/79811712.jpg?_ex=200x200&#038;s=2&#038;r=1"></a><br />
<img border="0" width="1" height="1" src="http://www10.a8.net/0.gif?a8mat=U70LG+CVSQKI+5WS+BWVTD" alt=""></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=45</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
