<?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>HOTSYSTEMS - BLOG - &#187; Zend Framework</title>
	<atom:link href="http://www.hotsystems.jp/blog/archives/category/zend-framework/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hotsystems.jp/blog</link>
	<description>簡単で使いやすいシステム開発でみんなを笑顔に！</description>
	<lastBuildDate>Sat, 22 Oct 2011 16:26:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend_Navigation　と　RewriteRouter</title>
		<link>http://www.hotsystems.jp/blog/archives/307</link>
		<comments>http://www.hotsystems.jp/blog/archives/307#comments</comments>
		<pubDate>Sat, 22 Oct 2011 16:26:59 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/?p=307</guid>
		<description><![CDATA[Zend_Navigation_Page：：factory(array())；
を使ってメニューなんかを作っているのだけれども、　RewriteRouter を使ったページにアクセスするとメニューのURLがおかしなことになった。
色々ググったが解決策が見つからない。ソースを追った結果以下の方法で解決。
Zend_Navigation_Page：：factory(array(
　&#8217;label&#8217; => &#8216;ラベル名&#8217;,
　&#8217;route&#8217; => &#8216;default&#8217;,
　&#8217;module&#8217; => &#8216;モジュール名&#8217;,
　&#8217;controller&#8217; => &#8216;コントローラー名&#8217;,
　&#8217;action&#8217; => &#8216;アクション名&#8217;,
))；
ルーターを使わないページ設定では
&#8216;route&#8217; => &#8216;default&#8217;,
を明示的に記載！！
これが分かるまでに何時間と。。。。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/307/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZendFramework 大文字小文字</title>
		<link>http://www.hotsystems.jp/blog/archives/254</link>
		<comments>http://www.hotsystems.jp/blog/archives/254#comments</comments>
		<pubDate>Wed, 29 Apr 2009 02:52:04 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/254</guid>
		<description><![CDATA[ZendFrameworkのコア部分をいじったので覚書。
Zend/Controller/Dispatcher/Standard.php
367行目あたり
$className = $this->formatControllerName($controllerName);
アクセスするコントローラー名をフォーマットしてるんだけど、これがLinux系のサーバでは厄介な事に・・・・
例えば
/UserList/
見たいにアクセスしたとすると
UserlistController.php
と先頭文字だけ大文字にして後は小文字に書き換えられてしまう。結果、作成したUserListController.phpはリナックス上だと別ファイルと認識される。余計な事をしていると思うんだけどな・・・・
で上のソースを以下の様に修正
$className = ucfirst($controllerName) . &#8216;Controller&#8217;;
これでUserListをそのままでコントローラーに渡してくれる
無理やりだけど・・・
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework &#8211; ルーティング処理</title>
		<link>http://www.hotsystems.jp/blog/archives/212</link>
		<comments>http://www.hotsystems.jp/blog/archives/212#comments</comments>
		<pubDate>Tue, 17 Jun 2008 04:10:05 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/212</guid>
		<description><![CDATA[Zend Frameworkでルーティング処理を行う場合の覚書
以下のように
$ctrl->addControllerDirectory(BASE_DIR.&#8217;application/backoffice/controllers&#8217;,'backoffice&#8217;);
でbackofficeモジュールを追加してあげた場合、ルーティング追加時にちゃんと
  &#8216;module&#8217; => &#8216;backoffice&#8217;,
を指定してあげないと上手く動作しない。
デフォルトのshopではいらない為、少しハマッた。
参考書には意外とこのような重要な所が抜けていることがありますね。
まーちゃんと、リファレンスガイドを読みましょうと言うことです。
http://framework.zend.com/manual/ja/index.html
以下サンプルソース
$ctrl = Zend_Controller_Front::getInstance();
$router = $ctrl->getRouter();
$router->addRoute(&#8216;backoffice/list&#8217;,
  new Zend_Controller_Router_Route(&#8216;backoffice/list/:p&#8217;,
 array(
  &#8216;module&#8217; => &#8216;backoffice&#8217;,
  &#8216;controller&#8217; => &#8216;list&#8217;,
  &#8216;action&#8217; => &#8216;index&#8217;,
  &#8216;p&#8217; => 1)));
$ctrl->setParam(&#8216;noViewRenderer&#8217;,true);
$ctrl->setDefaultModule(&#8217;shop&#8217;);
$ctrl->setControllerDirectory(BASE_DIR.&#8217;application/shop/controllers&#8217;);
$ctrl->addControllerDirectory(BASE_DIR.&#8217;application/backoffice/controllers&#8217;,'backoffice&#8217;);
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZF Validatorバグ</title>
		<link>http://www.hotsystems.jp/blog/archives/171</link>
		<comments>http://www.hotsystems.jp/blog/archives/171#comments</comments>
		<pubDate>Thu, 22 Nov 2007 14:03:02 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/171</guid>
		<description><![CDATA[ZendFrameworkを色々試している今日この頃ですが、どうやらまだバグらしきものがある。
Zend_Validate_Alnum（英数字のみで構成されているときTrueをかえす）を使ってみるとどうも日本語をちゃんと処理してくれない。調べると中で使われているZend_Filter_Alnumがちゃんと機能していないとのこと。
Zend/Filter/Alnum.phpの82行目を修正
//$pattern = &#8216;/[^\p{L}\p{N}' . $whiteSpace . ']/u&#8217;;
$pattern = &#8216;/[^\p{Ll}\p{Lu}\p{N}' . $whiteSpace . ']/u&#8217;;
これでちゃんと日本語が含まれているときにエラーを返してくれるようになった。きっと他にもバグがあるのだろうけど随時バージョンアップで修正してくれるだろうと期待。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/171/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZF デフォルトモジュール</title>
		<link>http://www.hotsystems.jp/blog/archives/170</link>
		<comments>http://www.hotsystems.jp/blog/archives/170#comments</comments>
		<pubDate>Mon, 19 Nov 2007 14:55:34 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/170</guid>
		<description><![CDATA[Zend Frameworkで、コントローラー、モデル、ビューをまとめてモジュールとすることが出来るのだけど、そのデフォルトはdefaultとなっている。これをshopモジュールとmasterモジュールで構成しshopモジュールをデフォルトに設定してみた。
index.phpを以下のように設定
< ?php
// コンポーネントをロードする
require_once 'Zend/Controller/Front.php';
$ctrl = Zend_Controller_Front::getInstance();
$ctrl->setParam(&#8216;noViewRenderer&#8217;,true);
$ctrl->setDefaultModule(&#8217;shop&#8217;); // デフォルトモジュールをshopに設定
$ctrl->setControllerDirectory(&#8216;../application/shop/controllers&#8217;);
$ctrl->addControllerDirectory(&#8216;../application/master/controllers&#8217;,'master&#8217;);
$ctrl->dispatch();
あとはshop,masterにそれぞれコントローラー、モデル、ビューを作成していく。
この時注意しなければいけないのが、モジュールを作成する場合、通常コントロールのクラス名は以下のようになるが
class モジュール名_IndexController　extends Zend_Controller_Action{}
shopモジュールはデフォルトに設定したのでクラス名にモジュール名は必要ない。
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/170/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework &#8211; mod_rewrite</title>
		<link>http://www.hotsystems.jp/blog/archives/166</link>
		<comments>http://www.hotsystems.jp/blog/archives/166#comments</comments>
		<pubDate>Mon, 05 Nov 2007 15:15:00 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/166</guid>
		<description><![CDATA[Zend Frameworkをローカル環境でテストする時の設定の覚書。mod_rewriteで少しハマった。。。
Zend　FrameworkはPHP5.1.4以上が必要なのでXAMPPのPHP SwitchでPHP5にする。ちなみに小生の環境はPHP5.2.0です。開発はEclipsでやるのでhttpd.confの設定でEclipsのワークスペースに合わせる。それからmod_rewriteを有効に。
LoadModule rewrite_module modules/mod_rewrite.so
Alias /zend &#8220;C:/D/Eclipse/zend/public_html/&#8221;
&#60;directory &#8220;C:/D/Eclipse/zend/public_html/&#8221;&#62;
 Options All
 AllowOverride all
 Order allow,deny
 Allow from all
&#60;/Directory&#62;
ここでOptions Allにしないと.htaccessでmod_rewriteの設定した時に、アクセス拒否されてしまったので注意。
次に.htaccessの設定
RewriteEngine On
RewriteRule !\.(js&#124;ico&#124;gif&#124;jpg&#124;png&#124;css&#124;zip&#124;gz&#124;html&#124;xml)$ index.php
RewriteBase /zend
DirectoryIndex index.php
RewriteBaseはhttpd.confで設定したドキュメントルートのエイリアス「zend」を設定
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/166/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend　Framework　-PHPフレームワークの本命？-</title>
		<link>http://www.hotsystems.jp/blog/archives/165</link>
		<comments>http://www.hotsystems.jp/blog/archives/165#comments</comments>
		<pubDate>Sun, 04 Nov 2007 15:34:03 +0000</pubDate>
		<dc:creator>hot</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[仕事]]></category>

		<guid isPermaLink="false">http://www.hotsystems.jp/blog/archives/165</guid>
		<description><![CDATA[最近、情報誌などでPHP4のサーポートが年内に終了・2008年8月にはセキュリティーサポートも終了と云う記事が出ているのを良く見かける。つまりは「みんなPHP5に移行しましょう」という話になっております。さてさてこうなってくるとPHP4で色々作ってきている小生にとっては（多くのWebアプリがそうであるように）無視できない状況になるわけですね。まーすぐに使えなくなるわけではないけど。
でまーPHP5で今後のアプリを作っていくにあたりそろそろフレームワークをと。今まではMojaviライクな自前フレームワークを使っていたのだけど今後の事を考えて世に出回っているものを使ってみようかと思い立ったのでした。そこで問題になってくるのがどのフレームワークを使うか？ってことになるわけです。PHPのフレームワーク色々ありますですよ。CakePHP,symfony,ethna・・・と。それぞれに書籍も出てたりして。まー使う側から言ったらいったいどれ選んだらいいねん！！と言いたくなるこの状況です。案件に合ったものを選びましょう！！って言ったって・・・
でちょっと調べてみるとZend Frameworkが今年の7月に正式リリースを迎えたらしいのです。以前見た時はベータ版だったのであまり使う気になれなかったのだけど正式リリースと云うことで、じゃまあとりあえずどんなもんか見てみましょうよと。ちょうどゼンド・ジャパン監修の参考書も出ている事だし、巷では「本命」と言われているみたいだし。
と、言う事で暫く仕事の合間をぬってZend Frameworkを研究してみよう！！
]]></description>
		<wfw:commentRss>http://www.hotsystems.jp/blog/archives/165/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

