0
我正在從mysql數據庫切換到sql server。新數據庫與以前的數據庫相同。但是,在創建用戶操作時,我收到了這種類型的錯誤。在Yii框架中獲取sql server數據庫的錯誤
include(.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
任何人都可以提出我能做些什麼來解決這個問題?
問題是出在這條線
$profile->attributes = $_POST['YumProfile'];
我從所有的對象都工作,我得到正確的價值$_POST['YumProfile']
的代碼檢查。
實際上,這個邏輯與其他user
表正常工作,並且正在插入值,但是當我嘗試將表格中的數據插入到profile
表中時,它會顯示此類型的錯誤。一切都是從輸入行尋找,但我不明白爲什麼
$profile->attributes = $_POST['YumProfile'];
此行給出了錯誤甚至profile->validate()
和profile->save()
也給出了這樣的錯誤,而$profile->attributes
和$_POST['YumProfile']
是否正常工作,並充滿了正確的價值觀。
不要只發布錯誤所在的行,如果你有它,請發佈整個調用棧(回溯)。 – DCoder