setucocms (1.6.1) | 2013-03-24 21:20 |
<?php //アプリケーションのパスを設定する defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); //アプリケーションの環境を設定する //設定した値によってアプリケーションの初期設定の内容が変わる //productionをdevelopmentに変更する defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); //アプリケーションのライブラリーにパスを通す set_include_path(implode(PATH_SEPARATOR, array( realpath(APPLICATION_PATH . '/../library'), get_include_path(), ))); // Zend_Applicationクラスがかかれているファイルを読み込む require_once 'Zend/Application.php'; // アプリケーションクラスのインスタンスの生成 $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); //コントローラーのインスタンスを生成する $application->bootstrap() ->run();
[PageInfo]
LastUpdate: 2010-07-31 09:55:29, ModifiedBy: mars-3
[License]
Creative Commons 2.1 Attribution-ShareAlike
[Permissions]
view:all, edit:members, delete/config:members