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) ; に設定される。

32 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 […]

  15. slot999 says:

    … [Trackback]

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

  16. phygital approach says:

    … [Trackback]

    […] Here you can find 67787 additional Info to that Topic: dragon-ark.com/archives/618 […]

  17. Beretta APX Magazine 9mm 17Rds Unpackaged says:

    … [Trackback]

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

  18. Buy Remington Shotguns Online says:

    … [Trackback]

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

  19. ดูหนังออนไลน์ says:

    … [Trackback]

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

  20. 【PHP】【CodeIgniter】index.php | Dragon-Ark says:

    Datacentre Proxies

    PHPの軽量フレームワーク CodeIgniterの備忘録 ■フロントコントローラの設定 ドキュメントルートに

  21. am.audiowatches.com says:

    … [Trackback]

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

  22. สล็อตวอเลท ไม่มีขั้นต่ำ says:

    … [Trackback]

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

  23. 【PHP】【CodeIgniter】index.php | Dragon-Ark says:

    Maxi Proxies

    PHPの軽量フレームワーク CodeIgniterの備忘録 ■フロントコントローラの設定 ドキュメントルートに

  24. 【PHP】【CodeIgniter】index.php | Dragon-Ark says:

    Unlimited Private Proxies

    PHPの軽量フレームワーク CodeIgniterの備忘録 ■フロントコントローラの設定 ドキュメントルートに

  25. 【PHP】【CodeIgniter】index.php | Dragon-Ark says:

    Ig Proxies Buy

    PHPの軽量フレームワーク CodeIgniterの備忘録 ■フロントコントローラの設定 ドキュメントルートに

  26. kspods.com says:

    … [Trackback]

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

  27. escorts says:

    … [Trackback]

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

Leave a Reply