<?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; 携帯</title>
	<atom:link href="http://ore.saizensen.net/archives/tag/%e6%90%ba%e5%b8%af/feed" rel="self" type="application/rss+xml" />
	<link>http://ore.saizensen.net</link>
	<description>イェ〜〜ィ。見てる〜〜〜？？</description>
	<lastBuildDate>Tue, 12 Jul 2011 06:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/tag/%e6%90%ba%e5%b8%af/feed" />
		<item>
		<title>[cakephp1.2]CakePHP1.2でprefixルーティング設定時の注意点。[携帯]</title>
		<link>http://ore.saizensen.net/archives/94</link>
		<comments>http://ore.saizensen.net/archives/94#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:25:08 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Lang]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/?p=94</guid>
		<description><![CDATA[CakePHP1.2.0.7296 RC2で携帯ページを作り始めました。 Versionが1.1の時や、1.2.0.6311 betaなどの時はwebservice機能を使って携帯に対応してましたが、 いつのまにか触らな [...]]]></description>
			<content:encoded><![CDATA[				<p><strong>CakePHP1.2.0.7296 RC2</strong>で携帯ページを作り始めました。<br />
				Versionが1.1の時や、1.2.0.6311 betaなどの時はwebservice機能を使って携帯に対応してましたが、<br />
				いつのまにか触らない間にwebservice機能が無くなっていたので、</p>
				<ul>
				<li><a href="http://www.1x1.jp/blog/2008/04/cakephp_12_routing_prefix.html">CakePHP 1.2で携帯用ビューを表示する</a></li>
				<li><a href="http://sand-man.blog.so-net.ne.jp/2008-09-11">CakePHP その20 〜1.2RC2でPC&#038;携帯対応サイトを考えた 〜　[CakePHP]</a></li>
				<li><a href="http://sand-man.blog.so-net.ne.jp/2008-09-20">CakePHP その21 〜MobileHelper2 〜　[CakePHP]</a></li>
				</ul>
				<p>を参考にしました。基本的にはそのままコードを使わせてもらいました。<br />
				あとは、CakePHPガイドブックに載っているMobileComponentや、<a href="http://php-develop.org/MobilePictogramConverter/">MobilePictogramConverter</a>で簡単に作れるEmojiComponentを読み込んだりと、以前に作った物をそのまま流用という感じです。</p>
				<p>で、肝心の注意点ですが、</p>
				
				<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Router<span style="color: #339933;">::</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/m/:controller/:action/*'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'prefix'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mobile'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>とするだけだと、Viewで</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">prev</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt; &lt; 前へ&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">numbers</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">next</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;次へ &gt;&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>
				
				<p>と書いていると、携帯用viewは良いんですが、PC用viewでのリンクが<br />
				<strong>http://localhost:8080/~bubbkis/m/staffs/clientsList/page:2</strong><br />
				みたいな感じでPC用の出力画面なのに、URLに<strong>「m」</strong>が入ってしまいました。<br />
				ということで、</p>
				
				<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/\/m\//&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> Router<span style="color: #339933;">::</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/m/:controller/:action/*'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'prefix'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mobile'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>としましたよ。と。<br />
無駄にRouterクラスまで見に行ったりしてたら半日使っちゃったよ・・・こんだけの事で。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/94/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/94" />
	</item>
		<item>
		<title>[Postfix]携帯メールアドレスの受信設定。</title>
		<link>http://ore.saizensen.net/archives/73</link>
		<comments>http://ore.saizensen.net/archives/73#comments</comments>
		<pubDate>Thu, 08 May 2008 16:51:34 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[Postfix]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[携帯]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/73</guid>
		<description><![CDATA[http://ke-tai.org/blog/2008/05/08/postfixketai/ Default設定のPostfixは、「-」（ハイフン）から始まるメールアドレスを弾いてしまうそうです。 解決策は以下。 m [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://ke-tai.org/blog/2008/05/08/postfixketai/">http://ke-tai.org/blog/2008/05/08/postfixketai/</a><br />
				Default設定の<strong>Postfix</strong>は、「-」（ハイフン）から始まるメールアドレスを弾いてしまうそうです。<br />
				解決策は以下。<br />
				main.cfへ</p>
				<pre>
allow_min_user = yes</pre>
				<p>この設定をしないと、以下のエラーを吐くそうです。</p>
				<pre>
This is the Postfix program at host expom.jp.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to If you do so, please include this problem report.
You can delete your own text from the attached returned message.

The Postfix program &lt;-[xxx]@docomo.ne.jp&gt;: invalid recipient syntax: "-[xxx]@docomo.ne.jp"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/73" />
	</item>
	</channel>
</rss>

