Table of Contents
軽くて学習コストがすくなくてすむと会社できいたので早速、codeigniter を使って遊んでいきたい。
phpがどうもまだ慣れていないためphpの学習も含めてcodeigniterを習得することが目的です。
日本語トップ
Page not found · GitHub Pages
日本語パックのダウンロード
Page not found · GitHub Pages
データベース設定
Page not found · GitHub Pages
/application/config/database.php $db['default']['dbdriver'] = 'postgre'; //★注意 "postgres" = 間違い "s"をつけてはいけない
ルーティング
Page not found · GitHub Pages
出力クラス
Page not found · GitHub Pages
.htaccess
index.phpなしでもいけるよう.htaccessを/application/.htaccessの配下へ新規作成。以下は、httpd-vhosts.confでバーチャルホストを設定済みの例。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
RedirectMatch 302 ^/$ /index.php/
</IfModule>

