oilコマンドを使用してFuelPHPをインストールしようとするとエラーになりました。
$ php oil create <project_name>
あれ?と思ってサイトからダウンロードして今度は
$ cd <project_name> $ php oil refine install
でも結果は同じ。。。
エラー結果を見てみると
Fatal error: Uncaught exception 'Fuel\Core\PhpErrorException' with message 'date(): It is not safe to rely on the system's timezone settings.
timezoneが設定されてない的なエラー。
要はこれみたいですね。
madroom project: FuelPHP1.4とconfigファイル
1.4になってからconfigの初期設定がcoreのほうに移動してるみたいです。
さらにdefault_timezoneがnullとなっています。これが原因?みたいです。
以下、config.phpの違い(抜粋:コメント部分が1.3)
/**
* index_file - The name of the main bootstrap file.
*/
'index_file' => false, // 'index.php',
/**
* DateTime settings
*/
'default_timezone' => null, // 'UTC'
'security' => array(
/**
* Encoding mechanism to use on htmlentities()
*/
'htmlentities_flags' => ENT_QUOTES, // 追加
/**
* Wether to encode HTML entities as well
*/
'htmlentities_double_encode' => false, // 追加
),
/**
* Controller class prefix
*/
'controller_prefix' => 'Controller_', // 追加
'routing' => array(
/**
* Wether to strip the extension
*/
'strip_extension' => true, // 追加
),
ただ書き出しただけですが、追加を除くと変更となっているのは index_file と default_timezone だけみたいです。
追加されてる内容は追々調べてみようかなと思います。
気になるは 'controller_prefix' 。。。
どういう用途なんだろう。
0 件のコメント:
コメントを投稿