PHPの軽量フレームワーク CodeIgniterの備忘録

■フロントコントローラの設定

ドキュメントルートに設置したindex.phpで以下の2箇所を編集する。
セキュリティ上は、index.phpとは別の場所(公開ディレクトリではない場所)の方が良い。

○「system」ディレクトリのパスを設定
$system_path = ‘system’;

○「application」ディレクトリのパスを設定
$application_folder = ‘application’;

 

■環境の切り替え

index.phpの中で環境を定義することで変更・切り替えが可能

○開発環境
define(‘ENVIRONMENT’, ‘development’);
→ error_reporting(E_ALL);に設定される。

○テスト環境
define(‘ENVIRONMENT’, ‘testing’);
→ error_reporting(0) ; に設定される。

○本番環境
define(‘ENVIRONMENT’, ‘production’);
→ error_reporting(0) ; に設定される。

19 Comments

  1. gửi hàng đi mỹ says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/618 […]

  2. exchange online plan 1 says:

    … [Trackback]

    […] Read More to that Topic: dragon-ark.com/archives/618 […]

  3. it danışmanlık ücretleri says:

    … [Trackback]

    […] There you can find 16733 additional Information to that Topic: dragon-ark.com/archives/618 […]

  4. lenovo servis says:

    … [Trackback]

    […] Info to that Topic: dragon-ark.com/archives/618 […]

  5. White House Market Link says:

    … [Trackback]

    […] Find More on on that Topic: dragon-ark.com/archives/618 […]

  6. penis envy mushrooms says:

    … [Trackback]

    […] Here you will find 45702 additional Information on that Topic: dragon-ark.com/archives/618 […]

  7. Buy weed online Germany says:

    … [Trackback]

    […] Find More Info here to that Topic: dragon-ark.com/archives/618 […]

  8. order lsd blotters says:

    … [Trackback]

    […] Find More to that Topic: dragon-ark.com/archives/618 […]

  9. agen mejaqq says:

    … [Trackback]

    […] There you can find 78450 additional Info on that Topic: dragon-ark.com/archives/618 […]

  10. agen dewaqq terpercaya says:

    … [Trackback]

    […] Read More on on that Topic: dragon-ark.com/archives/618 […]

  11. replica cheap fake christian louboutin shoes says:

    … [Trackback]

    […] Info on that Topic: dragon-ark.com/archives/618 […]

  12. pump up music says:

    … [Trackback]

    […] Read More on that Topic: dragon-ark.com/archives/618 […]

  13. nova88 says:

    … [Trackback]

    […] Read More Information here to that Topic: dragon-ark.com/archives/618 […]

  14. Generic viagra says:

    … [Trackback]

    […] Read More Info here to that Topic: dragon-ark.com/archives/618 […]

Leave a Reply