0
我只是更新我的cakephp 1.3到2.1。而當我打開我的項目發生這個錯誤。 (2):call_user_func_array()期望參數1是有效的回調,類'CakeTime'沒有方法'relativeTime'[CORE \ Cake \ View \ Helper \ TimeHelper.php,line 120]時間助手發生
有人可以幫忙嗎?
我只是更新我的cakephp 1.3到2.1。而當我打開我的項目發生這個錯誤。 (2):call_user_func_array()期望參數1是有效的回調,類'CakeTime'沒有方法'relativeTime'[CORE \ Cake \ View \ Helper \ TimeHelper.php,line 120]時間助手發生
有人可以幫忙嗎?
您應該閱讀遷移指南。 http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html
改爲使用timeAgoInWords(),因爲relativeTime()已被棄用,並且只是timeAgoInWords()的別名並被刪除。