【发布时间】:2013-03-19 15:10:11
【问题描述】:
我正在尝试使用 yii 迁移系统,但执行此命令时遇到此错误:
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 上查找,但找不到解决方案。
有人知道这个问题吗?
【问题讨论】:
-
你在哪个配置文件中定义的?你的主配置还是控制台配置?
-
本指南可能有用:human.software/human-thoughts/…
标签: yii database-migration yii-migrations