軽くて学習コストがすくなくてすむと会社できいたので早速、codeigniter を使って遊んでいきたい。
phpがどうもまだ慣れていないためphpの学習も含めてcodeigniterを習得することが目的です。
日本語トップ
codeigniter.jp
15 Shares
13 Users
4 Pockets
Page not found · GitHub Pages
日本語パックのダウンロード
codeigniter.jp
22 Shares
Page not found · GitHub Pages
データベース設定
codeigniter.jp
Page not found · GitHub Pages
/application/config/database.php $db['default']['dbdriver'] = 'postgre'; //★注意 "postgres" = 間違い "s"をつけてはいけない
ルーティング
codeigniter.jp
4 Pockets
Page not found · GitHub Pages
出力クラス
codeigniter.jp
3 Users
3 Pockets
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>