當我試圖用警予遷移系統,但我卡在這個錯誤,當我執行此COMMANDE:CConsoleApplication.defaultController沒有定義創建新的遷移
yiic migrate create add_table_test
我得到這個錯誤:
exception 'CException' with message 'Property CConsoleApplication.defaultController" is not defined'
(CCompenent.php:173)
但是我已經在我的配置文件中定義的defaultController:
'basePath'=>$rootPath,
'defaultController' => 'person/index',
'homeUrl'=>array('/me'),
我花了好幾個小時看Google,但我找不到解決方案。
有沒有人有關於這個問題的想法?
你在哪個配置文件中定義了它?你的主要配置或控制檯配置? – ThomasVdBerge 2013-03-19 15:16:05