<?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>Codeigniter &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Fri, 18 May 2012 15:29:58 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Codeigniter デフォルトコントローラの指定(PHP)</title>
		<link>https://tomodigi.com/web/codeigniter-%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%81%ae%e6%8c%87%e5%ae%9aphp/</link>
					<comments>https://tomodigi.com/web/codeigniter-%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%81%ae%e6%8c%87%e5%ae%9aphp/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Fri, 18 May 2012 19:21:29 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=1019</guid>

					<description><![CDATA[Codeigniterの話題（メモ書き）が続きます。 http://www.example/codeigniter/ とアクセスしたときに使用されるコントローラはconfigディレクトリ、routes.phpで設定します &#8230; <a href="https://tomodigi.com/web/codeigniter-%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%81%ae%e6%8c%87%e5%ae%9aphp/" class="more-link">続きを読む <span class="screen-reader-text">Codeigniter デフォルトコントローラの指定(PHP)</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Codeigniterの話題（メモ書き）が続きます。<br />
<code><br />
http://www.example/codeigniter/<br />
</code><br />
とアクセスしたときに使用されるコントローラはconfigディレクトリ、routes.phpで設定します。つまり、URIセグメントに何も指定されていないときに表示されるページの設定です。<br />
<code><br />
$route['default_controller'] = "welcome";<br />
</code><br />
上記の場合、welcome.phpのindex()がデフォルトコントローラとして指定されます。</p>
<p>config.phpの中を探してしまいましたが、routes.phpにあるんですね。と、気がついたあとに、ユーザガイドをみたら<a title="コントローラ : CodeIgniter ユーザガイド 日本語版" href="http://codeigniter.jp/user_guide_ja/general/controllers.html" target="_blank">コントローラの項目</a>にばっちり書いてありました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/codeigniter-%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%a9%e3%81%ae%e6%8c%87%e5%ae%9aphp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CodeIgniterの’index.php’を省略する（追加）(config.php)</title>
		<link>https://tomodigi.com/web/php/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b%e3%80%80%e8%bf%bd%e5%8a%a0%e3%80%80config-php/</link>
					<comments>https://tomodigi.com/web/php/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b%e3%80%80%e8%bf%bd%e5%8a%a0%e3%80%80config-php/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Wed, 16 May 2012 19:28:34 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=1008</guid>

					<description><![CDATA[CodeIgniterの’index.php’を省略するの記事の追加です。その記事では.htaccessの設定を書きました。これだけでは、コードないでリダイレクトした場合にはindex.phpが挿入されてしまうので、Co &#8230; <a href="https://tomodigi.com/web/php/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b%e3%80%80%e8%bf%bd%e5%8a%a0%e3%80%80config-php/" class="more-link">続きを読む <span class="screen-reader-text">CodeIgniterの’index.php’を省略する（追加）(config.php)</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><a title="CodeIgniterの’index.php’を省略する.htaccess" href="http://www.tomodigi.com/2012/05/15/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b-htaccess/">CodeIgniterの’index.php’を省略する</a>の記事の追加です。その記事では.htaccessの設定を書きました。これだけでは、コードないでリダイレクトした場合にはindex.phpが挿入されてしまうので、Codeigniterをインストールしたディレクトリの\apllcation\configにある、config.phpの</p>
<p><code>$config['index_page'] = 'index.php';</code></p>
<p>をコメントアウトします。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/php/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b%e3%80%80%e8%bf%bd%e5%8a%a0%e3%80%80config-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Codeigniter 2系の言語ファイル(Language)は別アーカイブ(PHP)</title>
		<link>https://tomodigi.com/web/codeigniter/</link>
					<comments>https://tomodigi.com/web/codeigniter/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Tue, 15 May 2012 19:10:01 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=1005</guid>

					<description><![CDATA[軽量軽快動作が売りのPHPフレームワーク Codeigniterの関連を続けます。 Codeigniter の現在の最新バージョンは2.1.0です。フレームワークに標準で用意されている様々なメッセージは、インストールディ &#8230; <a href="https://tomodigi.com/web/codeigniter/" class="more-link">続きを読む <span class="screen-reader-text">Codeigniter 2系の言語ファイル(Language)は別アーカイブ(PHP)</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>軽量軽快動作が売りのPHPフレームワーク Codeigniterの関連を続けます。</p>
<p>Codeigniter の現在の最新バージョンは2.1.0です。フレームワークに標準で用意されている様々なメッセージは、インストールディレクトリ下のapplication、languageに納めますが、それぞれの言語ごとに別アーカイブをダウンロード、展開する必要があります。日本語バージョンは完成度97%ということですが、<a title="CodeIgniter 2 | myGengo" href="http://mygengo.com/string/p/codeigniter-2-1" target="_blank">こちら</a>からダウンロードできます。</p>
<p>これがないと、フォームに入力を求めた際などに、form_validation_lang.phpがありませんといったエラーが出てしまいます。</p>
<p>Codeigniter 1系の最終版である1.7.3では、本体のアーカイブに各言語が含まれています。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/codeigniter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CodeIgniterの&#8217;index.php&#8217;を省略する.htaccess</title>
		<link>https://tomodigi.com/web/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b-htaccess/</link>
					<comments>https://tomodigi.com/web/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b-htaccess/#comments</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Mon, 14 May 2012 19:53:00 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[レンタルサーバー]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[htaccess]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=998</guid>

					<description><![CDATA[久しぶりにPHP関連の話題です。 PHPフレームワークのCodeIgniterは軽量かつわかりやすいということで人気です。現在のバージョンは2.1.0で、こちらからダウンロードできます。2MB強です。インストールは先ほど &#8230; <a href="https://tomodigi.com/web/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b-htaccess/" class="more-link">続きを読む <span class="screen-reader-text">CodeIgniterの&#8217;index.php&#8217;を省略する.htaccess</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>久しぶりにPHP関連の話題です。</p>
<p>PHPフレームワークのCodeIgniterは軽量かつわかりやすいということで人気です。現在のバージョンは2.1.0で、<a title="Download CodeIgniter | CodeIgniter" href="http://codeigniter.com/downloads/" target="_blank">こちら</a>からダウンロードできます。2MB強です。インストールは先ほどのアーカイブを展開しておくだけです。</p>
<p>展開したディレクトリをcodeigniterとすると、アクセスはhttp://www.example.com/codeigniter/index.php/test/などとなります。他のフレームワークと同様に、パラメータをディレクトリのように渡します。ただ、このままだと、inde.phpの部分が毎回表示され冗長です。</p>
<p>.htaccessを設定すると、解消できると<a title="CodeIgniter の URL : CodeIgniter ユーザガイド 日本語版" href="http://codeigniter.jp/user_guide_ja/general/urls.html" target="_blank">オンラインのドキュメントにも書かれている</a>ので設定してみましたが、404 Not Found とエラーが出てきました。<br />
<code><br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php|images|robots\.txt)<br />
RewriteRule ^(.*)$ /index.php/$1 [L]<br />
</code><br />
上記の場合は、CodeIgniterをhttp://www.example.com/の直下に展開した場合なので、今回のようにhttp://www.example.com/codeigniter/に展開した場合は3行目を以下のように書き換えます。<br />
<code><br />
RewriteEngine on<br />
RewriteCond $1 !^(index\.php|images|robots\.txt)<br />
RewriteRule ^(.*)$ <span style="color: #ff0000;">/codeigniter</span>/index.php/$1 [L]<br />
</code></p>
<p>これで無事に解決しました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/codeigniter%e3%81%aeindex-php%e3%82%92%e7%9c%81%e7%95%a5%e3%81%99%e3%82%8b-htaccess/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
