<?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>私事。 跡地 &#187; symfony</title>
	<atom:link href="http://francisca.cc/category/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/symfony-%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/feed/" rel="self" type="application/rss+xml" />
	<link>http://francisca.cc</link>
	<description>ダメな人間らしくダラダラ</description>
	<lastBuildDate>Fri, 28 Oct 2011 14:10:27 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://francisca.cc/category/%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/symfony-%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0/feed/" />
		<item>
		<title>[ symfony ] symfony 1.0 と 新しめのPEARの組み合わせで起きる、プラグインインストール時のエラー</title>
		<link>http://francisca.cc/2009/09/11/symfony-symfony-1-0-%e3%81%a8-%e6%96%b0%e3%81%97%e3%82%81%e3%81%aepear%e3%81%ae%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a7%e8%b5%b7%e3%81%8d%e3%82%8b%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0/</link>
		<comments>http://francisca.cc/2009/09/11/symfony-symfony-1-0-%e3%81%a8-%e6%96%b0%e3%81%97%e3%82%81%e3%81%aepear%e3%81%ae%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a7%e8%b5%b7%e3%81%8d%e3%82%8b%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 09:52:23 +0000</pubDate>
		<dc:creator>ef(管理人)</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://francisca.cc/?p=1300</guid>
		<description><![CDATA[エントリタイトルが糞長ぇ！ タイトルの通り、symfony 1.0と最近のバージョン(あやふやｗ)で起きる、symfony pluginインストール時のエラーです。 CentOS 5.3 i386/PEAR 1.9.0/ [...]]]></description>
			<content:encoded><![CDATA[				<p>エントリタイトルが糞長ぇ！</p>
				<p>タイトルの通り、symfony 1.0と最近の<a href="http://wiki.ffo.jp/html/5786.html">バージ</a>ョン(あやふやｗ)で起きる、symfony pluginインストール時のエラーです。<br />
				CentOS 5.3 i386/PEAR 1.9.0/symfony 1.0.22-PREの環境で発生。</p>
				<p><a href="http://symfony.jobweb.jp/?p=827" target="_blank">symfonyプラグインのインストールでエラーがでた場合 | symfonyで開発Blog</a><br />
				同様の現象がこちらでも起きているんですが、こちらとちょっと違って<a href="http://wiki.ffo.jp/html/459.html">前衛</a>的な対処法です。<br />
				<strong>安全性は上記エントリのがバツグンにあるんで、上記のがオススメです。</strong></p>
				<p>プラグインインストール時のエラーは上記エントリと同様です。 一部パスを隠してます。</p>
				<blockquote><p>P<a href="http://wiki.ffo.jp/html/324.html">HP</a> Warning:  require_once(PEAR/Remote.php): failed to open stream: No such file or directory in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155</p></blockquote>
				<blockquote><p>Warning: require_once(PEAR/Remote.php): failed to open stream: No such file or directory in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155</p></blockquote>
				<blockquote><p>P<a href="http://wiki.ffo.jp/html/324.html">HP</a> Fatal error:  require_once(): Failed opening required &#8216;PEAR/Remote.php&#8217; (<a href="http://wiki.ffo.jp/html/4271.html">inc</a>lude_path=&#8217;/var/www/documentroot/lib:/var/www/documentroot/apps//lib:<br />
				:/usr/share/pear/symfony1.0/lib/vendor:.:/usr/share/pear:/usr/share/php&#8217;)<br />
				in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155</p></blockquote>
				<blockquote><p>Fatal error: require_once(): Failed opening required &#8216;PEAR/Remote.php&#8217; (<a href="http://wiki.ffo.jp/html/4271.html">inc</a>lude_path=&#8217;/var/www/documentroot/lib:/var/www/documentroot/<br />
				apps//lib::/usr/share/pear/symfony1.0/lib/vendor:.:/usr/share/pear:/usr/share/php&#8217;)<br />
				in /usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php on line 155</p></blockquote>
				<p>要は、Remote.phpが見つからない、と。<br />
				で、上記エントリではRemote.phpが無いと書かれてますが、実はあるんです。 たぶん同じものが、<br />
				PEAR/Command/Remote.php<br />
				ここにありまする。<br />
				DI<a href="http://wiki.ffo.jp/html/360.html">FF</a>取ったわけじゃないけどたぶん同じです。</p>
				<p>んで、Remote.phpは<br />
				/usr/share/pear/symfony1.0/data/tasks/sfPakePlugins.php<br />
				から呼び出されようとしています。</p>
				<p>なのでこのファイルの155行目付近にある</p>
				<blockquote><p>require_once &#8216;PEAR/Remote.php&#8217;;</p></blockquote>
				<p>という行を</p>
				<blockquote><p>require_once &#8216;PEAR/Command/Remote.php&#8217;;</p></blockquote>
				<p>と書き換えるだけでもいけます。</p>
				<p>symfonyのコアファイルに手を入れるのはちょっとあれなので、<br />
				/path/to/PEAR/Remote.php というシンボリッ<a href="http://wiki.ffo.jp/html/8988.html">クリ</a>ンクを貼ってもよかと思います。 これでも通りました。</p>
				<p>symfonyが悪いというわけではなく、PEARが易々とファイル構造を変えるのが<a href="http://wiki.ffo.jp/html/15971.html">イカ</a>ンですな。<br />
				でもって追従出来てないsymfonyもちょっといかんー。</p>
				<p><a href="http://wiki.ffo.jp/html/23529.html">公式フォーラム</a>にもこの件があるっちゃあるんですが・・・<a href="http://forum.symfony-project.org/index.php/m/78060/?srch=Remote.php#msg_78060">この有様だよ</a></p>
]]></content:encoded>
			<wfw:commentRss>http://francisca.cc/2009/09/11/symfony-symfony-1-0-%e3%81%a8-%e6%96%b0%e3%81%97%e3%82%81%e3%81%aepear%e3%81%ae%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a7%e8%b5%b7%e3%81%8d%e3%82%8b%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://francisca.cc/2009/09/11/symfony-symfony-1-0-%e3%81%a8-%e6%96%b0%e3%81%97%e3%82%81%e3%81%aepear%e3%81%ae%e7%b5%84%e3%81%bf%e5%90%88%e3%82%8f%e3%81%9b%e3%81%a7%e8%b5%b7%e3%81%8d%e3%82%8b%e3%80%81%e3%83%97%e3%83%a9%e3%82%b0/" />
	</item>
		<item>
		<title>[ symfony ] view.ymlのstylesheets設定で複数のオプションをつける</title>
		<link>http://francisca.cc/2009/08/07/symfony-view-yml%e3%81%aestylesheets%e8%a8%ad%e5%ae%9a%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b/</link>
		<comments>http://francisca.cc/2009/08/07/symfony-view-yml%e3%81%aestylesheets%e8%a8%ad%e5%ae%9a%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 02:43:14 +0000</pubDate>
		<dc:creator>ef(管理人)</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://francisca.cc/?p=1282</guid>
		<description><![CDATA[view.ymlのstylesheetsでcssを設定することが出来ます。 オプションの設定はマニュアルに載ってますが複数のオプションの設定が無かったので補足。 まぁ、カンマ繋ぎするだけです。 stylesheets:  [...]]]></description>
			<content:encoded><![CDATA[				<p>view.ymlのs<a href="http://wiki.ffo.jp/html/5059.html">ty</a>lesheetsでcssを設定することが出来ます。<br />
				オプションの設定はマニュアルに載ってますが複数のオプションの設定が無かったので補足。<br />
				まぁ、カンマ繋ぎするだけです。</p>
				<blockquote><p>s<a href="http://wiki.ffo.jp/html/5059.html">ty</a>lesheets: [main, print: {media: print}]</p></blockquote>
				<p>↓</p>
				<blockquote><p>s<a href="http://wiki.ffo.jp/html/5059.html">ty</a>lesheets: [main, print: {media: print,<a href="http://wiki.ffo.jp/html/5059.html"> ty</a>pe: null}]</p></blockquote>
				<p>ソフトバンク端末絡みでview.ymlは使えなさそうだなぁ。。どうしようかな。 Actionで設定するしかないのかな。<br />
				もしくは<a href="http://wiki.ffo.jp/html/4271.html">inc</a>lude_s<a href="http://wiki.ffo.jp/html/5059.html">ty</a>lesheets()/get_s<a href="http://wiki.ffo.jp/html/5059.html">ty</a>lesheets()時に文字列を<a href="http://wiki.ffo.jp/html/10826.html">rep</a>laceするとか。。ス<a href="http://wiki.ffo.jp/html/1664.html">マート</a>じゃないけど。</p>
]]></content:encoded>
			<wfw:commentRss>http://francisca.cc/2009/08/07/symfony-view-yml%e3%81%aestylesheets%e8%a8%ad%e5%ae%9a%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://francisca.cc/2009/08/07/symfony-view-yml%e3%81%aestylesheets%e8%a8%ad%e5%ae%9a%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e3%81%a4%e3%81%91%e3%82%8b/" />
	</item>
		<item>
		<title>[ symfony ] symfonyのcomponents.class.phpを分割する</title>
		<link>http://francisca.cc/2009/06/03/symfony-symfony%e3%81%aecomponentsclassphp%e3%82%92%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b/</link>
		<comments>http://francisca.cc/2009/06/03/symfony-symfony%e3%81%aecomponentsclassphp%e3%82%92%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 08:13:45 +0000</pubDate>
		<dc:creator>ef(管理人)</dc:creator>
				<category><![CDATA[Program]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://francisca.cc/?p=1168</guid>
		<description><![CDATA[前回のactions.class.php分割に引き続き・・・というか全く同じです。 symfony 1.0なので微妙に1.1や1.2では違うかもしれません。 そこだけ注意。 symfonyはページのサイドペインなどをコン [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://francisca.cc/2008/09/01/symfony%e3%81%aeactionsclassphp%e3%82%92%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b/">前回のactions.class.php分割</a>に引き続き・・・というか全く同じです。<br />
				symfony 1.0なので微妙に1.1や1.2では違うかもしれません。 そこだけ注意。</p>
				<p>symfonyはページのサイドペインなどをコンポーネント化させることが出来ます。<br />
				うちの会社だとヘッダ・フッタ・レフトペイン・ライトペインをコンポーネント化し、真ん中だけをxxxxSuccess.phpに書いています。</p>
				<p>コンポーネントはcomponentsモジュール/actionsアクションにcomponents.class.phpという名前で置く必要があります。<br />
				中身はこんな感じ。</p>
				<blockquote><p>class componentsComponents extends sfComponents{<br />
				　public function executeHeader()<br />
				　{</p>
				<p>　}</p>
				<p>　public function executeFooter()<br />
				　{</p>
				<p>　}</p>
				<p>　public function executeLeftPane()<br />
				　{</p>
				<p>　}</p>
				<p>　public function executeRightPane()<br />
				　{</p>
				<p>　}<br />
				}</p></blockquote>
				<p>分割の際の命名ルールはアクションと全く同様です。<br />
				コンポーネント名Component.class.php です。<br />
				アクションのときはComponentではなく、hogeAction.class.phpでしたね。</p>
				<p>それぞれのコンポーネントは</p>
				<blockquote><p>headerComponent.class.php<br />
				footerComponent.class.php<br />
				leftPaneComponent.class.php<br />
				rightPaneComponent.class.php</p></blockquote>
				<p>となります。</p>
				<p>クラス名もそれぞれ</p>
				<blockquote><p>headerComponent<br />
				footerComponent<br />
				leftPaneComponent<br />
				rightPaneComponent</p></blockquote>
				<p>となります。 継承はsfComponentsです。</p>
				<p>アクション同様、components.class.phpと両方に同じコンポーネントがある場合は分割されたものが使用されるようです。</p>
				<p>実行部分はexecute()内に書けばいんですが、validate()やhandleError()が使えるかどうかは今の所未確認。<br />
				その内確認しときまーす。</p>
				<p>てか、この辺のことってマニュアルに書いてないような気がするんだけど、見落としですかな・・・。</p>
]]></content:encoded>
			<wfw:commentRss>http://francisca.cc/2009/06/03/symfony-symfony%e3%81%aecomponentsclassphp%e3%82%92%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://francisca.cc/2009/06/03/symfony-symfony%e3%81%aecomponentsclassphp%e3%82%92%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b/" />
	</item>
	</channel>
</rss>

