0
我是CakePHP框架的新手(更多的Yii人),所以我的問題可能看起來很愚蠢,但我整天都陷入這個問題。我想創建控制檯命令shell來執行,但也有一些是錯誤的會話初始化我不斷得到錯誤(?):cakephp cli中的會話錯誤
PHP Notice: Undefined index: cookie in E:\htdocs\project\lib\Cake\Model\Datasource\CakeSession.php on line 485
PHP Notice: Undefined index: timeout in E:\htdocs\project\lib\Cake\Model\Datasource\CakeSession.php on line 491
PHP Warning: ini_set(): session.name cannot be a numeric or empty '' in E:\htdocs\project\lib\Cake\Model\Datasource\CakeSession.php on line 500
PHP Fatal error: Uncaught exception 'CakeSessionException' with message 'Unable to configure the session, setting session.name failed.' in E:\htdocs\project\lib\Cake\Model\Datasource\CakeSession.php:501
爲什麼CakePHP的不加載core.php中配置值?在我的配置我設置:
Configure::write('Session', array(
'defaults' => 'php'
));
Configure::write('Session.cookie', 'PROJECT');
Configure::write('Session.timeout', '28800');
的CakePHP版本2.4.7