當我調用CreateController時,出現此錯誤:「get_class()期望參數1爲對象,數組給定」 控制研究/ actionCreate()如下: public function actionCreate() {
$model = new Ogrenci;
$model2 =new Adresler;
$this->performAjaxValidation
我試圖運行與誼在命令行上的命令。我的方法需要一個模型,但是當我運行命令,Yii中說,模型不存在,因爲如果它不自動加載它。我的階級是相當簡短: class ImportCommand extends CConsoleCommand {
public function actionIndex() {
}
public function actionImport()